]> granicus.if.org Git - apache/commitdiff
Tweak the logic to avoid "make distclean" inside APR directories so that
authorJeff Trawick <trawick@apache.org>
Mon, 27 Nov 2000 22:32:50 +0000 (22:32 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 27 Nov 2000 22:32:50 +0000 (22:32 +0000)
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

build/rules.mk

index a6458a55874e94b9bfca8d392fd02a673ecb61bc..2e4a41bd4377ce7586202ef011ca6b84f7c0073d 100644 (file)
@@ -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; \