Mercurial > hg > octave-max
changeset 1166:4e39d71f1ff2
[project @ 1995-03-10 16:32:58 by jwe]
author | jwe |
---|---|
date | Fri, 10 Mar 1995 16:35:47 +0000 |
parents | f5e905eedac4 |
children | 364906259d4a |
files | Makeconf.in octMakefile.in |
diffstat | 2 files changed, 17 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/Makeconf.in +++ b/Makeconf.in @@ -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
--- a/octMakefile.in +++ b/octMakefile.in @@ -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.