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
+Sun Jul 2 04:40:50 1995 Tom Yu <tlyu@lothlorien.MIT.EDU>
+
+ * 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
$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
all:: DONE
DONE:: $1
- echo $1 > [$]@
+ @if test x'$1' = x && test -r [$]@; then :;\
+ else \
+ (set -x; echo $1 > [$]@) \
+ fi
clean::
$(RM) DONE