From: Jeff Trawick Date: Mon, 27 Nov 2000 22:32:50 +0000 (+0000) Subject: Tweak the logic to avoid "make distclean" inside APR directories so that X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b2906909289591298cdfeeab36b13f67ef5e79f;p=thirdparty%2Fapache%2Fhttpd.git Tweak the logic to avoid "make distclean" inside APR directories so that it works on Tru64. On that platform, when grep failed (because we weren't in an APR directory), the non-zero exit status failed the entire operation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87096 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/rules.mk b/build/rules.mk index a6458a55874..2e4a41bd437 100644 --- a/build/rules.mk +++ b/build/rules.mk @@ -150,8 +150,8 @@ distclean-recursive clean-recursive depend-recursive all-recursive install-recur for d in `find . -name Makefile`; do \ i=`dirname "$$d"`; \ target="$$otarget"; \ - in_apr=`echo $$i|grep 'apr/.'`; \ - if test "x$$in_apr" = "x"; then \ + in_apr=`echo $$i|sed 's%^.*apr/.*$$%ignore_apr_subdirs%'`; \ + if test "x$$in_apr" != "xignore_apr_subdirs"; then \ echo "Making $$target in $$i"; \ if test "$$i" = "."; then \ ok=yes; \