1# Copyright (C) 2004, 2007, 2012 Internet Systems Consortium, Inc. ("ISC") 2# Copyright (C) 1999-2001 Internet Software Consortium. 3# 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. 7# 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. 15 16# Id: b9t.mk,v 1.13 2007/06/19 23:46:59 tbox Exp 17 18# 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 22# 23 24BASE = /build 25BDIR = $(BASE) 26MODULE = bind9 27SDIR = $(HOME)/b9t/src 28 29# as it says 30CVSROOT = /proj/cvs/isc 31 32# where the config, build and test output goes 33RDIR = /proj/build-reports/$(MODULE)/hosts/$(PLATFORM) 34 35all: clobber populate config build test 36 37clobber: 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`" 42 43populate: 44 @echo "POPULATE `date`" 45 @( cd $(BDIR) && tar -xvf $(SDIR)/$(MODULE).tar ) > $(RDIR)/.populate 2>&1 46 @echo "DONE `date`" 47 48config: 49 @echo "CONFIG `date`" 50 @( cd $(BDIR)/$(MODULE) && ./configure ) > $(RDIR)/.config 2>&1 51 @echo "DONE `date`" 52 53build: 54 @echo "BUILD `date`" 55 @( cd $(BDIR)/$(MODULE) && $(MAKE) -k all ) > $(RDIR)/.build 2>&1 56 @echo "DONE `date`" 57 58test: 59 @echo "TEST `date`" 60 -@( cd $(BDIR)/$(MODULE)/bin/tests && $(MAKE) test ) > $(RDIR)/.test 2>&1 61 @echo "DONE `date`" 62 63tarsrc: 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`" 68 69