From xemacs-m  Fri Mar 21 12:48:59 1997
Received: from GS213.SP.CS.CMU.EDU (GS213.SP.CS.CMU.EDU [128.2.209.183])
	by xemacs.org (8.8.5/8.8.5) with SMTP id MAA04964
	for <xemacs-beta@xemacs.org>; Fri, 21 Mar 1997 12:48:58 -0600 (CST)
Received: by GS213.SP.CS.CMU.EDU (AIX 3.2/UCB 5.64/4.03)
          id AA21501; Fri, 21 Mar 1997 13:48:56 -0500
Date: Fri, 21 Mar 1997 13:48:56 -0500
Message-Id: <9703211848.AA21501@GS213.SP.CS.CMU.EDU>
From: Darrell Kindred <dkindred@cmu.edu>
To: xemacs-beta@xemacs.org
Subject: all-elc small problem [patch]
Organization: Carnegie Mellon University School of Computer Science

If I do
    gmake all-elc
the update-elc.sh script will use regular `make', because
the MAKE variable isn't exported to the script.  The patch
below fixes this.  (The change for the `autoloads' target
is harmless but unnecessary since update-autoloads doesn't
currently run make.)

- Darrell

--- Makefile.in.orig	Sat Mar  8 21:36:24 1997
+++ Makefile.in	Fri Mar 21 13:48:27 1997
@@ -213,7 +213,7 @@
 # Build XEmacs and recompile out-of-date and missing .elc files along
 # the way.
 all-elc:	src/paths.h src/Emacs.ad.h lib-src lwlib dump-elcs src
-	sh ${srcdir}/lib-src/update-elc.sh
+	MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-elc.sh
 
 # Sub-target for all-elc.
 dump-elcs:	FRC.dump-elcs
@@ -221,7 +221,7 @@
 		CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'
 
 autoloads:	src
-	sh ${srcdir}/lib-src/update-autoloads.sh
+	MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-autoloads.sh
 
 # We force the rebuilding of src/paths.h because the user might give
 # different values for the various directories.  Since we use

