diff Makefile.in @ 151:59463afc5666 r20-3b2

Import from CVS: tag r20-3b2
author cvs
date Mon, 13 Aug 2007 09:37:19 +0200
parents 538048ae2ab8
children 43dd3413c7c7
line wrap: on
line diff
--- a/Makefile.in	Mon Aug 13 09:36:20 2007 +0200
+++ b/Makefile.in	Mon Aug 13 09:37:19 2007 +0200
@@ -32,14 +32,14 @@
 #      with them.
 #
 #      Delete `.dvi' files here if they are not part of the distribution.
-# 
+#
 # make distclean
 #      Delete all files from the current directory that are created by
 #      configuring or building the program.  If you have unpacked the
 #      source and built the program without creating any other files,
 #      `make distclean' should leave only the files that were in the
 #      distribution.
-# 
+#
 # make realclean
 #      Delete everything from the current directory that can be
 #      reconstructed with this Makefile.  This typically includes
@@ -286,10 +286,9 @@
 	  /bin/sh ${srcdir}/lib-src/ad2c ${srcdir}/etc/Emacs.ad ) > \
 	  src/Emacs.ad.h
 
-src:	lib-src lwlib dynodump FRC.src
+src:	@SRC_SUBDIR_DEPS@ FRC.src
 lib-src: FRC.lib-src
 lwlib:	FRC.lwlib
-dynodump: FRC.dynodump
 
 .RECURSIVE: ${SUBDIR}
 
@@ -309,9 +308,6 @@
 lwlib/Makefile: ${srcdir}/lwlib/Makefile.in.in config.status
 	./config.status
 
-dynodump/Makefile: ${srcdir}/dynodump/Makefile.in.in config.status
-	./config.status
-
 src/config.h: ${srcdir}/src/config.h.in
 	./config.status
 
@@ -458,7 +454,6 @@
 ### Some makes seem to remember that they've built something called FRC,
 ### so you can only use a given FRC once per makefile.
 FRC FRC.src.paths.h FRC.src FRC.lib-src FRC.lwlib FRC.mkdir FRC.dump-elcs:
-FRC.dynodump:
 FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean:
 
 # ==================== Cleaning up and miscellanea ====================
@@ -471,11 +466,8 @@
 ###      target for GCC does not delete `libgcc.a', because recompiling it
 ###      is rarely necessary and takes a lot of time.
 mostlyclean: FRC.mostlyclean
-	(cd src      && $(MAKE) $(MFLAGS) mostlyclean)
-	(cd lib-src  && $(MAKE) $(MFLAGS) mostlyclean)
-	(cd lwlib    && $(MAKE) $(MFLAGS) mostlyclean)
-	(cd dynodump && $(MAKE) $(MFLAGS) mostlyclean)
-	-(cd man     && $(MAKE) $(MFLAGS) mostlyclean)
+	for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done
+	-(cd man && $(MAKE) $(MFLAGS) $@)
 
 ### `clean'
 ###      Delete all files from the current directory that are normally
@@ -483,14 +475,12 @@
 ###      record the configuration.  Also preserve files that could be made
 ###      by building, but normally aren't because the distribution comes
 ###      with them.
-### 
+###
 ###      Delete `.dvi' files here if they are not part of the distribution.
 clean: FRC.clean
-	(cd src      && $(MAKE) $(MFLAGS) clean)
-	(cd lib-src  && $(MAKE) $(MFLAGS) clean)
-	(cd lwlib    && $(MAKE) $(MFLAGS) clean)
-	(cd dynodump && $(MAKE) $(MFLAGS) clean)
-	-(cd man     && $(MAKE) $(MFLAGS) clean)
+	for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done
+	-(cd man && $(MAKE) $(MFLAGS) $@)
+	rm -f core
 
 ### `distclean'
 ###      Delete all files from the current directory that are created by
@@ -499,18 +489,16 @@
 ###      `make distclean' should leave only the files that were in the
 ###      distribution.
 top_distclean=\
-	rm -f config.status config-tmp-* build-install Installation ; \
-	rm -f Makefile ${SUBDIR_MAKEFILES}; \
-	(cd lock && rm -f *)
+	rm -f config.status config.log config-tmp-* build-install Installation ; \
+	for d in src lib-src lwlib dynodump ; do \
+	  rm -f $$d/Makefile $$d/Makefile.in ; \
+	done ; \
+	rm -f core .sbinit Makefile lock/*
 
 distclean: FRC.distclean
-	-([ ! -d lock ] && mkdir lock)
-	-([ ! -d site-lisp ] && mkdir site-lisp)
-	(cd src      && $(MAKE) $(MFLAGS) distclean)
-	(cd lib-src  && $(MAKE) $(MFLAGS) distclean)
-	(cd lwlib    && $(MAKE) $(MFLAGS) distclean)
-	(cd dynodump && $(MAKE) $(MFLAGS) distclean)
-	-(cd man     && $(MAKE) $(MFLAGS) distclean)
+	-for d in lock site-lisp; do test -d $$d || mkdir $$d; done
+	for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done
+	-(cd man && $(MAKE) $(MFLAGS) $@)
 	-${top_distclean}
 
 ### `realclean'
@@ -518,18 +506,15 @@
 ###      reconstructed with this Makefile.  This typically includes
 ###      everything deleted by distclean, plus more: C source files
 ###      produced by Bison, tags tables, info files, and so on.
-### 
+###
 ###      One exception, however: `make realclean' should not delete
 ###      `configure' even if `configure' can be remade using a rule in the
 ###      Makefile.  More generally, `make realclean' should not delete
 ###      anything that needs to exist in order to run `configure' and then
 ###      begin to build the program.
 realclean: FRC.realclean
-	(cd src      && $(MAKE) $(MFLAGS) realclean)
-	(cd lib-src  && $(MAKE) $(MFLAGS) realclean)
-	(cd lwlib    && $(MAKE) $(MFLAGS) realclean)
-	(cd dynodump && $(MAKE) $(MFLAGS) realclean)
-	-(cd man     && $(MAKE) $(MFLAGS) realclean)
+	for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done
+	-(cd man && $(MAKE) $(MFLAGS) $@)
 	-${top_distclean}
 
 ### This doesn't actually appear in the coding standards, but Karl
@@ -537,11 +522,8 @@
 ### the coding standards seem to come from.  It's like distclean, but
 ### it deletes backup and autosave files too.
 extraclean:
-	(cd src      && $(MAKE) $(MFLAGS) extraclean)
-	(cd lib-src  && $(MAKE) $(MFLAGS) extraclean)
-	(cd lwlib    && $(MAKE) $(MFLAGS) extraclean)
-	(cd dynodump && $(MAKE) $(MFLAGS) extraclean)
-	-(cd man     && $(MAKE) $(MFLAGS) extraclean)
+	for d in $(MAKE_SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done
+	-(cd man && $(MAKE) $(MFLAGS) $@)
 	-rm -f *~ \#*
 	-${top_distclean}