]> granicus.if.org Git - apache/commitdiff
Change Apache's distclean rule to rely on APR to clean up APR as
authorJeff Trawick <trawick@apache.org>
Mon, 27 Nov 2000 18:15:00 +0000 (18:15 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 27 Nov 2000 18:15:00 +0000 (18:15 +0000)
appropriate.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87091 13f79535-47bb-0310-9956-ffa450edef68

build/rules.mk

index ea0117a5613e1142cf54a95fe4a3d24282f263b0..a6458a55874e94b9bfca8d392fd02a673ecb61bc 100644 (file)
@@ -131,6 +131,8 @@ install: install-recursive
 # directory that has ever been configured.  To do this, we just do a quick
 # find for all the leftover Makefiles, and then run make distclean in those
 # directories.
+# Exception: Skip APR directories (other than the base APR directory),
+#            because APR knows how to do these tasks better than we do.
 distclean-recursive clean-recursive depend-recursive all-recursive install-recursive:
        @otarget=`echo $@|sed s/-recursive//`; \
        list='$(SUBDIRS)'; for i in $$list; do \
@@ -148,12 +150,15 @@ distclean-recursive clean-recursive depend-recursive all-recursive install-recur
                for d in `find . -name Makefile`; do \
                        i=`dirname "$$d"`; \
                        target="$$otarget"; \
-                       echo "Making $$target in $$i"; \
-                       if test "$$i" = "."; then \
-                               ok=yes; \
-                               target="$$target-p"; \
+                       in_apr=`echo $$i|grep 'apr/.'`; \
+                       if test "x$$in_apr" = "x"; then \
+                               echo "Making $$target in $$i"; \
+                               if test "$$i" = "."; then \
+                                       ok=yes; \
+                                       target="$$target-p"; \
+                               fi; \
+                               (cd $$i && $(MAKE) $$target) || exit 1; \
                        fi; \
-                       (cd $$i && $(MAKE) $$target) || exit 1; \
                done; \
        fi