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
27 SDIR
= $(HOME
)/b9t
/src
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
38 @echo
"CLOBBBER `date`"
39 @if
test ! -d
$(BDIR
) ; then mkdir
-p
$(BDIR
) > /dev
/null
2>&1 ; fi
40 @
( cd
$(BDIR
) && rm -fr
$(MODULE
) )
44 @echo
"POPULATE `date`"
45 @
( cd
$(BDIR
) && tar -xvf
$(SDIR
)/$(MODULE
).
tar ) > $(RDIR
)/.populate
2>&1
50 @
( cd
$(BDIR
)/$(MODULE
) && .
/configure
) > $(RDIR
)/.config
2>&1
55 @
( cd
$(BDIR
)/$(MODULE
) && $(MAKE
) -k
all ) > $(RDIR
)/.build
2>&1
60 -@
( cd
$(BDIR
)/$(MODULE
)/bin
/tests
&& $(MAKE
) test ) > $(RDIR
)/.
test 2>&1
65 @
rm -fr
$(SDIR
)/$(MODULE
)
66 @
( cd
$(SDIR
) && cvs
-d
$(CVSROOT
) checkout
$(MODULE
) && tar -cvf
$(MODULE
).
tar $(MODULE
) )