etc/services - sync with NetBSD-8
[minix.git] / external / bsd / bind / dist / bin / tests / b9t.mk
blob58ec6b60263c54eea45458cfd4a1e989f0cc3e8c
1 # Copyright (C) 2004, 2007, 2012 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 1999-2001 Internet Software Consortium.
4 # Permission to use, copy, modify, and/or distribute this software for any
5 # purpose with or without fee is hereby granted, provided that the above
6 # copyright notice and this permission notice appear in all copies.
8 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 # PERFORMANCE OF THIS SOFTWARE.
16 # Id: b9t.mk,v 1.13 2007/06/19 23:46:59 tbox Exp
19 # makefile to configure, build and test bind9
20 # this is run by cron (user wpk) on aa, sol, irix, hp and aix
21 # $PLATFORM is set in the environment by cron
24 BASE = /build
25 BDIR = $(BASE)
26 MODULE = bind9
27 SDIR = $(HOME)/b9t/src
29 # as it says
30 CVSROOT = /proj/cvs/isc
32 # where the config, build and test output goes
33 RDIR = /proj/build-reports/$(MODULE)/hosts/$(PLATFORM)
35 all: clobber populate config build test
37 clobber:
38 @echo "CLOBBBER `date`"
39 @if test ! -d $(BDIR) ; then mkdir -p $(BDIR) > /dev/null 2>&1 ; fi
40 @( cd $(BDIR) && rm -fr $(MODULE) )
41 @echo "DONE `date`"
43 populate:
44 @echo "POPULATE `date`"
45 @( cd $(BDIR) && tar -xvf $(SDIR)/$(MODULE).tar ) > $(RDIR)/.populate 2>&1
46 @echo "DONE `date`"
48 config:
49 @echo "CONFIG `date`"
50 @( cd $(BDIR)/$(MODULE) && ./configure ) > $(RDIR)/.config 2>&1
51 @echo "DONE `date`"
53 build:
54 @echo "BUILD `date`"
55 @( cd $(BDIR)/$(MODULE) && $(MAKE) -k all ) > $(RDIR)/.build 2>&1
56 @echo "DONE `date`"
58 test:
59 @echo "TEST `date`"
60 -@( cd $(BDIR)/$(MODULE)/bin/tests && $(MAKE) test ) > $(RDIR)/.test 2>&1
61 @echo "DONE `date`"
63 tarsrc:
64 @echo "TARSRC `date`"
65 @rm -fr $(SDIR)/$(MODULE)
66 @( cd $(SDIR) && cvs -d $(CVSROOT) checkout $(MODULE) && tar -cvf $(MODULE).tar $(MODULE) )
67 @echo "DONE `date`"