From: Tom Yu Date: Sun, 2 Jul 1995 10:50:04 +0000 (+0000) Subject: * aclocal.m4 (SubdirLibRule): don't recreate DONE if list of objs X-Git-Tag: krb5-1.0-beta6~1597 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8ad59cabadf0ac64b4b8f0e6690e4689cd44094d;p=krb5.git * aclocal.m4 (SubdirLibRule): don't recreate DONE if list of objs is null to avoid re-making lotsa stuff. (_MAKE_SUBDIRS): really gross sh hack for subdir recursion; make -[ik] should dtrt now even with broken makes (like Ultrix) that do sh -ce "rule". Basically, throw an "if" test around the recursion line so that even if the -e option to sh is set by make, an error in a subdir below won't cause for loop to exit unless we want it to. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6218 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index 8a948d937..5dd55e4ce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,14 @@ +Sun Jul 2 04:40:50 1995 Tom Yu + + * aclocal.m4 (SubdirLibRule): don't recreate DONE if list of objs + is null to avoid re-making lotsa stuff. + (_MAKE_SUBDIRS): really gross sh hack for subdir + recursion; make -[ik] should dtrt now even with broken + makes (like Ultrix) that do sh -ce "rule". Basically, + throw an "if" test around the recursion line so that even + if the -e option to sh is set by make, an error in a + subdir below won't cause for loop to exit unless we want + it to. Fri Jun 30 14:26:01 EDT 1995 Paul Park (pjpark@mit.edu) * aclocal.m4(V5_SHARED_LIB_OBJS) - Change explicit $(srcdir)/$*.c to diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 6fee5f22a..24f16a08d 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -86,11 +86,12 @@ changequote(<<<,>>>)dnl $2::<<< @case "`echo '$(MAKEFLAGS)'|sed -e 's/ --.*$$//'`" in \ - *[ik]*) set +e;; *) set -e;; esac; \ + *[ik]*) e=:;; *) e=break;; esac; \ for i in $(SUBDIRS) ; do \ - (cd $$i ; echo>>> $1 <<<"in $(CURRENT_DIR)$$i..."; \ + if (cd $$i ; echo>>> $1 <<<"in $(CURRENT_DIR)$$i..."; \ $(MAKE) CC="$(CC)" CCOPTS="$(CCOPTS)" \ - CURRENT_DIR=$(CURRENT_DIR)$$i/ >>>$3<<<) \ + CURRENT_DIR=$(CURRENT_DIR)$$i/ >>>$3<<<) then :; \ + else $$e; fi; \ done>>> changequote([,])dnl AC_POP_MAKEFILE()dnl @@ -486,7 +487,10 @@ AC_PUSH_MAKEFILE()dnl all:: DONE DONE:: $1 - echo $1 > [$]@ + @if test x'$1' = x && test -r [$]@; then :;\ + else \ + (set -x; echo $1 > [$]@) \ + fi clean:: $(RM) DONE