b8t.mk revision 247bf378605811d695e968dbe930a7fc45c0038e
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; Copyright (C) 1999-2001 Internet Software Consortium.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; Permission to use, copy, modify, and/or distribute this software for any
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; purpose with or without fee is hereby granted, provided that the above
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; copyright notice and this permission notice appear in all copies.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte; PERFORMANCE OF THIS SOFTWARE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# $Id: b8t.mk,v 1.11 2007/06/19 23:46:59 tbox Exp $
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# bind 8 multi-host make
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# PLATFORM set in the environment by cron
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
a79493184c9332129c9c91500069322f6f3fafddReed
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODULE = bind
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBASE = /build
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBDIR = $(BASE)/$(MODULE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteRDIR = /proj/build-reports/bind8/hosts/$(PLATFORM)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSDIR = $(HOME)/b8t/src
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCVSROOT = /proj/cvs/isc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: clobber populate config build
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclobber:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "CLOBBBER `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @if test ! -d $(BASE) ; then mkdir -p $(BASE) ; fi
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @rm -fr $(BDIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "DONE `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepopulate:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "POPULATE `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @( cd $(BASE) && tar -xvf $(SDIR)/$(MODULE).tar ) > $(RDIR)/.populate 2>&1
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "DONE `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetarsrc:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "TARSRC `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @rm -fr $(SDIR)/$(MODULE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @( cd $(SDIR) && cvs -d $(CVSROOT) checkout $(MODULE) )
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @( cd $(SDIR) && tar -cvf $(MODULE).tar $(MODULE) )
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "DONE `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteconfig:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "CONFIG `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @( cd $(BDIR)/src && make SRC=$(BDIR)/src DST=$(BDIR)/dst links ) > $(RDIR)/.config 2>&1
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "DONE `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortebuild:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "BUILD `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @( cd $(BDIR)/dst && make -k clean depend all ) > $(RDIR)/.build 2>&1
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "DONE `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetest:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "TEST `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @touch $(RDIR)/.test
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "DONE `date`"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte