From: <sg...@us...> - 2003-08-31 00:44:31
|
Update of /cvsroot/libfunutil/libfunutil/toc/make In directory sc8-pr-cvs1:/tmp/cvs-serv12944 Modified Files: subdirs_traverser.make Log Message: subdirs runs now use --no-print-directory Index: subdirs_traverser.make =================================================================== RCS file: /cvsroot/libfunutil/libfunutil/toc/make/subdirs_traverser.make,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- subdirs_traverser.make 28 Aug 2003 23:11:54 -0000 1.8 +++ subdirs_traverser.make 31 Aug 2003 00:44:26 -0000 1.9 @@ -18,7 +18,10 @@ toc_make_subdirs = \ test -z "$(1)" && exit 0; \ for b in $(1) ""; do test -z "$$b" && continue; \ - ${MAKE} -C $$b $(2) || exit; \ + pwd=$$(pwd); \ + tgt="$(2)"; test -z "$$tgt" && tgt="all"; \ + echo "Making $$tgt in directory $$pwd/$$b..."; \ + ${MAKE} --no-print-directory -C $$b $(2) || exit; \ done SUBDIRS_CLEANERS = $(patsubst %,clean-%,$(SUBDIRS)) @@ -29,9 +32,6 @@ .PHONY: subdirs $(SUBDIRS) $(SUBDIRS_CLEANERS) $(SUBDIRS_DISTCLEANERS) \ distclean-subdirs clean-subdirs - - -# $(patsubst %,%: subdir-%,$(SUBDIRS)) $(SUBDIRS): ${MAKE} -C $@ |