+Mon Oct 21 21:21:43 1996 Tom Yu <tlyu@mit.edu>
+
+ * pre.in: Substitute for *_RECURSE variables.
+
+ * post.in: Add *-recurse targets for new recursion method.
+
Fri Oct 18 11:03:24 1996 Barry Jaspan <bjaspan@mit.edu>
* pre.in (DEJAFLAGS): s/:=/=/ [PR #117]
$(RM) msvc.pdb *.err
Makefiles:: Makefile
+Makefiles:: $(MAKEFILES_RECURSE)
Makefile: $(srcdir)/Makefile.in $(thisconfigdir)/config.status \
$(SRCTOP)/config/pre.in $(SRCTOP)/config/post.in
--localdir=$(BUILDTOP) \
--macrodir=$(BUILDTOP)/util/autoconf
-#These don't work well with some versions of GNU make.
-#all-unix clean-unix install-unix check-unix Makefiles::
-# @case "`echo '$(MAKEFLAGS)'|sed -e 's/ --.*$$//'`" in \
-# *[ik]*) e=:;; *) e="exit 1";; esac;
-
-@RECURSE_TARGETS@::
- @e="exit 1"; \
+all-recurse clean-recurse install-recurse check-recurse Makefiles-recurse:
+ @case "`echo '$(MFLAGS)'|sed -e 's/ --.*$$//'`" in \
+ *[ik]*) e=:;; *) e="exit 1";; esac; \
for i in $(SUBDIRS) ; do \
if test -d $$i ; then \
- target=`echo $@|sed s/-unix//`; \
+ target=`echo $@|sed s/-recurse//`; \
echo "making $$target in $(CURRENT_DIR)$$i..."; \
if (cd $$i ; $(MAKE) CC="$(CC)" CCOPTS="$(CCOPTS)" \
CURRENT_DIR=$(CURRENT_DIR)$$i/ $$target) then :; \
check:: check-$(WHAT)
-all-unix::
-clean-unix::
-install-unix::
-check-unix::
+#
+# set up some variables for use in recursion
+#
+ALL_RECURSE=@ALL_RECURSE@
+CLEAN_RECURSE=@CLEAN_RECURSE@
+INSTALL_RECURSE=@INSTALL_RECURSE@
+CHECK_RECURSE=@CHECK_RECURSE@
+MAKEFILES_RECURSE=@MAKEFILES_RECURSE@
+
+all-unix:: $(ALL_RECURSE)
+clean-unix:: $(CLEAN_RECURSE)
+install-unix:: $(INSTALL_RECURSE)
+check-unix:: $(CHECK_RECURSE)
# Directory syntax:
R=/
clean::
install::
check::
+
+#
+# end of pre.in