Mercurial > hg > octave-avbm
changeset 1134:d65e3b59e07c
[project @ 1995-02-23 20:09:31 by jwe]
author | jwe |
---|---|
date | Thu, 23 Feb 1995 20:10:12 +0000 |
parents | 79ee7f07221e |
children | 32cb143658a6 |
files | libcruft/Makefile.in octMakefile.in |
diffstat | 2 files changed, 20 insertions(+), 51 deletions(-) [+] |
line wrap: on
line diff
--- a/libcruft/Makefile.in +++ b/libcruft/Makefile.in @@ -31,12 +31,13 @@ DISTFILES = Makefile.in Makerules.in $(SOURCES) STOP.patch -all: make-objects libcruft.a +all: $(SUBDIRS) libcruft.a .PHONY: all -make-objects: - for dir in $(SUBDIRS); do echo making all in $$dir; cd $$dir; $(MAKE) $(MDEFINES) all; cd ..; done -.PHONY: make-objects +$(SUBDIRS): + echo making all in $@ + cd $@; $(MAKE) all +.PHONY: $(SUBDIRS) CRUFT_FSRC = $(foreach dir, $(SUBDIRS), $(wildcard $(srcdir)/$(dir)/*.f)) CRUFT_OBJ3 = $(patsubst $(srcdir)/%, %, $(CRUFT_FSRC)) @@ -55,7 +56,7 @@ .PHONY: check install: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done + for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done $(top_srcdir)/mkinstalldirs $(libdir) rm -f $(libdir)/libcruft.a $(INSTALL_DATA) libcruft.a $(libdir)/libcruft.a @@ -63,25 +64,25 @@ .PHONY: install uninstall: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done + for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done rm -f $(libdir)/libcruft.a .PHONY: uninstall tags: $(SOURCES) - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done + for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done ctags $(SOURCES) TAGS: $(SOURCES) - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done + for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done etags $(SOURCES) clean: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done + for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done rm -f *.a *.o .PHONY: clean mostlyclean: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done + for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done rm -f *.a *.o .PHONY: mostlyclean @@ -90,7 +91,7 @@ .PHONY: distclean realclean: - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done + for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done rm -f *.a *.o tags TAGS Makefile .PHONY: realclean
--- a/octMakefile.in +++ b/octMakefile.in @@ -29,26 +29,25 @@ # Complete directory trees to distribute. DISTDIRS = kpathsea -# Subdirectories to run make in for the primary targets. +# Subdirectories in which to run `make all'. SUBDIRS = libcruft liboctave @DLD_DIR@ info readline kpathsea src \ scripts doc -# Subdirectories to run `make dist' in +# Subdirectories in which to run `make dist'. DISTSUBDIRS = libcruft liboctave info readline src scripts dld test doc BINDISTFILES = COPYING ChangeLog NEWS README THANKS INSTALL.OCTAVE \ BUGS PROJECTS octave-bug octave.sh octave-mode.el doinstall.sh \ mkinstalldirs -# Subdirectories to run `make dist' in +# Subdirectories in which to run `make dist'. BINDISTSUBDIRS = scripts doc DIRS_TO_MAKE = $(bindir) $(fcnfiledir) $(octfiledir) $(archlibdir) \ `echo $(localfcnfilepath) | awk -F: '{for (i=1; i<=NF; i++) print $i}'` \ `echo $(localoctfilepath) | awk -F: '{for (i=1; i<=NF; i++) print $i}'` -all: octave-bug - for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done +all: octave-bug $(SUBDIRS) .PHONY: all octave-bug: octave-bug.in @@ -68,41 +67,10 @@ -e "s;%DEFS%;${UGLY_DEFS};") @mv $@.tmp $@ -libcruft: - cd libcruft ; $(MAKE) all -.PHONY: libcruft - -liboctave: - cd liboctave ; $(MAKE) all -.PHONY: liboctave - -kpathsea: - cd kpathsea ; $(MAKE) all -.PHONY: kpathsea - -dld: - cd dld ; $(MAKE) all -.PHONY: dld - -info: - cd info ; $(MAKE) all -.PHONY: info - -readline: - cd readline ; $(MAKE) all -.PHONY: readline - -src: - cd src ; $(MAKE) all -.PHONY: src - -scripts: - cd scripts ; $(MAKE) all -.PHONY: scripts - -doc: - cd doc ; $(MAKE) all -.PHONY: doc +$(SUBDIRS): + echo making all in $@ + cd $@ ; $(MAKE) all +.PHONY: $(SUBDIRS) check: cd test; $(MAKE) check