mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-24 07:41:10 -04:00
Alter distclean rule to prevent recursing into the same directory twice
Commitf87e0c03eeremoved the "system" directory from the TESTDIRS variable in bin/tests/Makefile.in in an attempt to fix "make distclean" which was broken since commit0d784de16a. However, this change prevented any system tests from being run when "make test" is invoked. We now put it back into both SUBDIRS and TESTDIRS, but with a modified rule to check for the existence of a Makefile in each subdirectory before trying to run make there. This prevents "make distclean" from trying to run again in a directory where it's already been run.
This commit is contained in:
parent
80ab2c0f22
commit
93ee6b8a22
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
|
|||
LIBS = @LIBS@
|
||||
|
||||
SUBDIRS = system @PKCS11_TOOLS@
|
||||
TESTDIRS =
|
||||
TESTDIRS = system
|
||||
|
||||
# Test programs that are built by default:
|
||||
# cfg_test is needed for regenerating doc/misc/options
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ install:: all
|
|||
|
||||
install uninstall clean distclean maintainer-clean doc docclean man manclean::
|
||||
@for i in ${ALL_SUBDIRS} ${ALL_TESTDIRS}; do \
|
||||
if [ "$$i" != "nulldir" -a -d $$i ]; then \
|
||||
if [ "$$i" != "nulldir" -a -d $$i -a -f $$i/Makefile ]; then \
|
||||
echo "making $@ in `pwd`/$$i"; \
|
||||
(cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
|
||||
fi; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue