diff options
Diffstat (limited to 'make/rules.in')
| -rw-r--r-- | make/rules.in | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/make/rules.in b/make/rules.in index d8484808b498..fdbd5f5b3845 100644 --- a/make/rules.in +++ b/make/rules.in @@ -1,4 +1,4 @@ -# Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC") +# Copyright (C) 2004-2009, 2011 Internet Systems Consortium, Inc. ("ISC") # Copyright (C) 1998-2003 Internet Software Consortium. # # Permission to use, copy, modify, and/or distribute this software for any @@ -13,7 +13,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: rules.in,v 1.64.130.2 2009-01-10 23:46:57 tbox Exp $ +# $Id: rules.in,v 1.64.130.4 2011-02-28 01:18:47 tbox Exp $ ### ### Common Makefile rules for BIND 9. @@ -48,7 +48,7 @@ top_builddir = @BIND9_TOP_BUILDDIR@ ### Makefile may define: ### TARGETS -all: subdirs ${TARGETS} +all: subdirs ${TARGETS} testdirs ### ### Subdirectories @@ -57,11 +57,12 @@ all: subdirs ${TARGETS} ### SUBDIRS ALL_SUBDIRS = ${SUBDIRS} nulldir +ALL_TESTDIRS = ${TESTDIRS} nulldir # # We use a single-colon rule so that additional dependencies of # subdirectories can be specified after the inclusion of this file. -# The "depend" target is treated the same way. +# The "depend" and "testdirs" targets are treated the same way. # subdirs: @for i in ${ALL_SUBDIRS}; do \ @@ -71,6 +72,17 @@ subdirs: fi; \ done +# +# Tests are built after the targets instead of before +# +testdirs: + @for i in ${ALL_TESTDIRS}; do \ + if [ "$$i" != "nulldir" -a -d $$i ]; then \ + echo "making all in `pwd`/$$i"; \ + (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \ + fi; \ + done + install:: all install clean distclean maintainer-clean doc docclean man manclean:: |
