diff options
Diffstat (limited to 'contrib/bind9/make/rules.in')
-rw-r--r-- | contrib/bind9/make/rules.in | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/contrib/bind9/make/rules.in b/contrib/bind9/make/rules.in index 12c9d5f50ca54..692c7e3b9a172 100644 --- a/contrib/bind9/make/rules.in +++ b/contrib/bind9/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.68 2009-09-01 18:40:25 jinmei Exp $ +# $Id: rules.in,v 1.68.346.2 2011-02-28 01:20:04 tbox Exp $ ### ### Common Makefile rules for BIND 9. @@ -50,7 +50,7 @@ top_builddir = @BIND9_TOP_BUILDDIR@ ### Makefile may define: ### TARGETS -all: subdirs ${TARGETS} +all: subdirs ${TARGETS} testdirs ### ### Subdirectories @@ -59,11 +59,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 \ @@ -73,6 +74,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:: |