1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-24 10:38:38 +00:00

Define MAKE, and use where appropriate.

This commit is contained in:
Richard M. Stallman 1993-01-13 22:20:28 +00:00
parent 7bc18990e1
commit 08edea3c96

View File

@ -36,6 +36,7 @@
# Still more severe - delete backup and autosave files, too. # Still more severe - delete backup and autosave files, too.
SHELL = /bin/sh SHELL = /bin/sh
MAKE = make # BSD doesn't have it as a default.
# ==================== Things `configure' Might Edit ==================== # ==================== Things `configure' Might Edit ====================
@ -201,7 +202,7 @@ src: lib-src
.RECURSIVE: ${SUBDIR} .RECURSIVE: ${SUBDIR}
${SUBDIR}: ${SUBDIR_MAKEFILES} FRC ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
cd $@; make all ${MFLAGS} \ cd $@; $(MAKE) all ${MFLAGS} \
CC='${CC}' CFLAGS='${CFLAGS}' \ CC='${CC}' CFLAGS='${CFLAGS}' \
srcdir='${srcdir}/$@' libdir='${libdir}' srcdir='${srcdir}/$@' libdir='${libdir}'
@ -265,7 +266,7 @@ install: all mkdir
## If we let lib-src do its own installation, that means we ## If we let lib-src do its own installation, that means we
## don't have to duplicate the list of utilities to install in ## don't have to duplicate the list of utilities to install in
## this Makefile as well. ## this Makefile as well.
(cd lib-src; make install ${MFLAGS} bindir=${bindir} libdir=${libdir}) (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
-set ${COPYDESTS} ; \ -set ${COPYDESTS} ; \
for dir in ${COPYDIR} ; do \ for dir in ${COPYDIR} ; do \
dest=$$1 ; shift ; \ dest=$$1 ; shift ; \
@ -300,7 +301,7 @@ install.sysv: all mkdir
## If we let lib-src do its own installation, that means we ## If we let lib-src do its own installation, that means we
## don't have to duplicate the list of utilities to install in ## don't have to duplicate the list of utilities to install in
## this Makefile as well. ## this Makefile as well.
(cd lib-src; make install ${MFLAGS} bindir=${bindir} libdir=${libdir}) (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
-set ${COPYDESTS} ; \ -set ${COPYDESTS} ; \
for dir in ${COPYDIR} ; do \ for dir in ${COPYDIR} ; do \
dest=$$1 ; shift ; \ dest=$$1 ; shift ; \
@ -333,7 +334,7 @@ install.xenix: all mkdir
## If we let lib-src do its own installation, that means we ## If we let lib-src do its own installation, that means we
## don't have to duplicate the list of utilities to install in ## don't have to duplicate the list of utilities to install in
## this Makefile as well. ## this Makefile as well.
(cd lib-src; make install ${MFLAGS} bindir=${bindir} libdir=${libdir}) (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
-set ${COPYDESTS} ; \ -set ${COPYDESTS} ; \
for dir in ${COPYDIR} ; do \ for dir in ${COPYDIR} ; do \
dest=$$1 ; shift ; \ dest=$$1 ; shift ; \
@ -371,7 +372,7 @@ install.aix: all mkdir
## If we let lib-src do its own installation, that means we ## If we let lib-src do its own installation, that means we
## don't have to duplicate the list of utilities to install in ## don't have to duplicate the list of utilities to install in
## this Makefile as well. ## this Makefile as well.
(cd lib-src; make install ${MFLAGS} bindir=${bindir} libdir=${libdir}) (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
-set ${COPYDESTS} ; \ -set ${COPYDESTS} ; \
for dir in ${COPYDIR} ; do \ for dir in ${COPYDIR} ; do \
dest=$$1 ; shift ; \ dest=$$1 ; shift ; \
@ -427,11 +428,11 @@ FRC:
### recompiling it is rarely necessary and takes a lot of time. ### recompiling it is rarely necessary and takes a lot of time.
### ###
clean mostlyclean: clean mostlyclean:
cd src; make clean cd src; $(MAKE) clean
cd lib-src; make clean cd lib-src; $(MAKE) clean
cd oldXMenu; make clean cd oldXMenu; $(MAKE) clean
if [ `(cd ${etcdir} ; /bin/pwd` != `(cd etc; /bin/pwd)` ] ; then \ if [ `(cd ${etcdir} ; /bin/pwd` != `(cd etc; /bin/pwd)` ] ; then \
cd etc; make clean; \ cd etc; $(MAKE) clean; \
else true; \ else true; \
fi fi
@ -440,7 +441,7 @@ clean mostlyclean:
### configuring or building the program. This should leave only the ### configuring or building the program. This should leave only the
### files that would be in the distribution. ### files that would be in the distribution.
distclean: distclean:
for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} distclean); done for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} distclean); done
-(cd lock; rm *) -(cd lock; rm *)
-rm config.status config-tmp-* -rm config.status config-tmp-*
@ -450,7 +451,7 @@ distclean:
### everything deleted by distclean, plus more: C source files ### everything deleted by distclean, plus more: C source files
### produced by Bison, tags tables, info files, and so on. ### produced by Bison, tags tables, info files, and so on.
realclean: realclean:
for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} realclean); done for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} realclean); done
(cd lock; rm *) (cd lock; rm *)
rm config.status rm config.status
@ -459,7 +460,7 @@ realclean:
### the coding standards seem to come from. It's like distclean, but ### the coding standards seem to come from. It's like distclean, but
### it deletes backup and autosave files too. ### it deletes backup and autosave files too.
extraclean: extraclean:
for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} extraclean); done for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} extraclean); done
-(cd lock; rm *) -(cd lock; rm *)
-rm config.status config-tmp-* -rm config.status config-tmp-*
-rm -f *~ \#* -rm -f *~ \#*