Commits

youngs  committed f954a70

2003-08-28 Steve Youngs <youngs@xemacs.org>

* xemacs-packages/Makefile: include ../Local.rules.inc so we can get
at $NONMULE_PACKAGES.
(PACKAGES): Base it on the value of $NONMULE_PACKAGES.

* mule-packages/Makefile: include ../Local.rules.inc so we can get at
$MULE_PACKAGES.
(PACKAGES): Base it on the value of $MULE_PACKAGES.

* Local.rules.template: Update the comments about NONMULE_PACKAGES
and MULE_PACKAGES.

This change makes it possible to build a subset of packages from
the toplevel by setting (NON)MULE_PACKAGES in Local.rules. The
format for both vars is a whitespace separated list of package
directory names with *NO* '(xemacs|mule)-packages/' prefix.

  • Participants
  • Parent commits 2600d38

Comments (0)

Files changed (4)

+2003-08-28  Steve Youngs  <youngs@xemacs.org>
+
+	* xemacs-packages/Makefile: include ../Local.rules.inc so we can get
+	at $NONMULE_PACKAGES.
+	(PACKAGES): Base it on the value of $NONMULE_PACKAGES.
+
+	* mule-packages/Makefile: include ../Local.rules.inc so we can get at
+	$MULE_PACKAGES.
+	(PACKAGES): Base it on the value of $MULE_PACKAGES.
+
+	* Local.rules.template: Update the comments about NONMULE_PACKAGES
+	and MULE_PACKAGES.
+
+	This change makes it possible to build a subset of packages from
+	the toplevel by setting (NON)MULE_PACKAGES in Local.rules.  The
+	format for both vars is a whitespace separated list of package
+	directory names with *NO* '(xemacs|mule)-packages/' prefix.
+
 2003-08-26  Norbert Koch  <viteno@xemacs.org>
 
 	* Packages released: text-modes.

File Local.rules.template

 # doesn't look at this, it's used by 'make install'.  You probably don't
 # want to change this.
 #
-# The format for this is: xemacs-packages/pkg1 xemacs-packages/pkg2...
-# e.g. xemacs-packages/xemacs-base xemacs-packages/bbdb
+# The format for this is: pkg1 pkg2...
+# e.g. xemacs-base bbdb
+#
+# Or you can use the symbol 'xemacs-packages' which means to build ALL
+# the non-Mule packages.
 NONMULE_PACKAGES = xemacs-packages
 
 # Mule packages or groups of packages to build/install.  'make bindist'
 # want to change this.  If you don't want any Mule packages, don't change
 # this, instead set BUILD_WITHOUT_MULE above.
 #
-# The format for this is: mule-packages/pkg1 mule-packages/pkg2...
-# e.g. mule-packages/mule-base mule-packages/skk
+# The format for this is the same as for 'NONMULE_PACKAGES' except you
+# can use the symbol 'mule-packages' to mean ALL Mule packages.
 MULE_PACKAGES = mule-packages
 
 PACKAGE_INDEX = package-index

File mule-packages/Makefile

 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 # Boston, MA 02111-1307, USA.
 
-PACKAGES= mule-base \
-	locale leim lookup edict egg-its skk mule-ucs latin-unity
+# So we can get at $MULE_PACKAGES
+include ../Local.rules.inc
+
+ifeq ('$(MULE_PACKAGES)','mule-packages')
+PACKAGES := mule-base locale leim lookup edict egg-its skk \
+	mule-ucs latin-unity
+else
+PACKAGES := $(MULE_PACKAGES)
+endif
 
 ASSUMED_PRESENT = xemacs-base fsf-compat viper apel cookie elib dired
 

File xemacs-packages/Makefile

 #
 # This is no longer true.  We build all autoloads first, before any
 # compilation, so they're available to all packages. --ben
-PACKAGES= xemacs-base fsf-compat mail-lib dired efs apel \
+
+# So we can get at $NONMULE_PACKAGES
+include ../Local.rules.inc
+
+ifeq $($(NONMULE_PACKAGES),xemacs-packages)
+PACKAGES := xemacs-base fsf-compat mail-lib dired efs apel \
 	Sun edebug elib tooltalk xemacs-devel sounds-au sounds-wav \
 	eieio build auctex crisp edt reftex texinfo textools tpu viper \
 	vm w3 net-utils eudc footnote gnats mh-e supercite mailcrypt \
 	liece haskell-mode ess docbookide ecrypto ocaml sasl sml-mode \
 	python-modes fortran-modes ruby-modes perl-modes pgg ecb x-symbol \
 	hyperbole oo-browser
+else
+PACKAGES := $(NONMULE_PACKAGES)
+endif
 
 include ../iterate.rules