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: b8t.mk,v 1.11 2007/06/19 23:46:59 tbox Exp
19 # bind 8 multi-host make
20 # PLATFORM set in the environment by cron
25 BDIR
= $(BASE
)/$(MODULE
)
26 RDIR
= /proj
/build-reports
/bind8
/hosts
/$(PLATFORM
)
27 SDIR
= $(HOME
)/b8t
/src
28 CVSROOT
= /proj
/cvs
/isc
30 all: clobber populate config build
33 @echo
"CLOBBBER `date`"
34 @if
test ! -d
$(BASE
) ; then mkdir
-p
$(BASE
) ; fi
39 @echo
"POPULATE `date`"
40 @
( cd
$(BASE
) && tar -xvf
$(SDIR
)/$(MODULE
).
tar ) > $(RDIR
)/.populate
2>&1
45 @
rm -fr
$(SDIR
)/$(MODULE
)
46 @
( cd
$(SDIR
) && cvs
-d
$(CVSROOT
) checkout
$(MODULE
) )
47 @
( cd
$(SDIR
) && tar -cvf
$(MODULE
).
tar $(MODULE
) )
52 @
( cd
$(BDIR
)/src
&& make SRC
=$(BDIR
)/src DST
=$(BDIR
)/dst links
) > $(RDIR
)/.config
2>&1
57 @
( cd
$(BDIR
)/dst
&& make
-k
clean depend
all ) > $(RDIR
)/.build
2>&1