# HG changeset patch # User jwe # Date 794853347 0 # Node ID 4e39d71f1ff2ea605462349a40b7bc310dee855f # Parent f5e905eedac472e3569590143fc6a4c50c7d3913 [project @ 1995-03-10 16:32:58 by jwe] diff -r f5e905eedac4 -r 4e39d71f1ff2 Makeconf.in --- a/Makeconf.in Fri Mar 03 20:25:25 1995 +0000 +++ b/Makeconf.in Fri Mar 10 16:35:47 1995 +0000 @@ -244,3 +244,13 @@ sed -e 's/$*\.o/& $@/g' -e 's,$(srcdir)/,,g' > $@.tmp ; \ fi @mv $@.tmp $@ + +define SUBDIR_FOR_COMMAND +for dir in $(SUBDIRS); \ +do \ + echo making $@ in $$dir; \ + cd $$dir; \ + $(MAKE) $@; \ + cd ..; \ +done +endef diff -r f5e905eedac4 -r 4e39d71f1ff2 octMakefile.in --- a/octMakefile.in Fri Mar 03 20:25:25 1995 +0000 +++ b/octMakefile.in Fri Mar 10 16:35:47 1995 +0000 @@ -88,41 +88,19 @@ cd doc ; $(MAKE) ../BUGS .PHONY: BUGS.info -install: +install:: $(top_srcdir)/mkinstalldirs $(DIRS_TO_MAKE) $(INSTALL) octave-bug $(bindir)/octave-bug - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done -.PHONY: install -uninstall: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done -.PHONY: uninstall - -tags: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done -.PHONY: tags - -TAGS: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done -.PHONY: TAGS +install uninstall tags TAGS clean mostlyclean distclean realclean:: + $(SUBDIR_FOR_COMMAND) +.PHONY: install uninstall tags clean mostlyclean distclean realclean -clean: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done -.PHONY: clean - -mostlyclean: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done -.PHONY: mostlyclean +distclean:: + rm -f Makefile config.cache config.log config.status -distclean: clean - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done - rm -f Makefile config.cache config.log config.status -.PHONY: distclean - -realclean: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done +realclean:: rm -f Makefile config.status -.PHONY: realclean # Now that things are under RCS control, we need to do the recursive # chmod so that the distributed files end up with reasonable modes.