Commit 87f5715d authored by Jeff Trawick's avatar Jeff Trawick
Browse files

Change Apache's distclean rule to rely on APR to clean up APR as

appropriate.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87091 13f79535-47bb-0310-9956-ffa450edef68
parent 1c09a0f0
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -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"; \
			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; \
		done; \
	fi