Source

xemacs-packages / Makefile

Full commit
# This file is part of XEmacs.

# XEmacs is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any
# later version.

# XEmacs is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.

# You should have received a copy of the GNU General Public License
# along with XEmacs; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

SUBDIRS = libs comm games prog wp os oa

# Use a Local.rules file to specify what you wish to have installed
XEMACS_PACKAGES_BASE := $(shell pwd)


all:: all-bytecompile

include Local.rules.mk
-include Local.rules

ifeq ($(BUILD_WITHOUT_MULE),)
SUBDIRS += mule
endif

all-bytecompile:
	for dir in $(SUBDIRS); do \
		$(MAKE) $(MFLAGS) -C $${dir} autoloads; \
	done
	for dir in $(SUBDIRS); do \
		$(MAKE) $(MFLAGS) -C $${dir} bytecompile; \
	done


.PHONY: all all-bytecompile bindist clean distclean install autoloads

autoloads:
	for dir in $(SUBDIRS); do \
		$(MAKE) $(MFLAGS) -C $${dir} autoloads; \
	done

World: distclean install

install: all
ifneq ($(MULE_PACKAGES),'')
	for dir in $(MULE_PACKAGES); do \
		$(MAKE) STAGING=$(MULE_STAGING) $(MFLAGS) -C $${dir} install; \
	done
endif
ifneq ($(XEMACS_PACKAGES),'')
	for dir in $(XEMACS_PACKAGES); do \
		$(MAKE) STAGING=$(XEMACS_STAGING) $(MFLAGS) -C $${dir} install; \
	done
endif

bindist:
	for dir in $(SUBDIRS); do \
		$(MAKE) $(MFLAGS) -C $${dir} autoloads; \
	done
	for dir in $(SUBDIRS); do \
		$(MAKE) $(MFLAGS) -C $${dir} bindist; \
	done

clean:
	for dir in $(SUBDIRS); do \
		$(MAKE) $(MFLAGS) -C $${dir} clean; \
	done

distclean:
	for dir in $(SUBDIRS); do \
		$(MAKE) $(MFLAGS) -C $${dir} distclean; \
	done