1 |
# Makefile for php webreports |
2 |
# $Id: Makefile,v 1.4 2002/03/18 13:24:31 tdb Exp $ |
3 |
|
4 |
include Config.inc |
5 |
|
6 |
# these files will be included in the distribution |
7 |
FILES = README `ls -d alerts/* | grep -v CVS` `ls -d allalerts/* | grep -v CVS`\ |
8 |
`ls -d historical/* | grep -v CVS` `ls -d index/* | grep -v CVS`\ |
9 |
`ls -d latest/* | grep -v CVS` `ls -d public/* | grep -v CVS`\ |
10 |
`ls -d shared/* | grep -v CVS` `ls -d logins/* | grep -v CVS`\ |
11 |
`ls -d graphs/* | grep -v CVS` COPYING |
12 |
|
13 |
all: dist |
14 |
|
15 |
dist: |
16 |
mkdir -p $(BUILDDIR)/temp |
17 |
cp -Rp $(FILES) $(BUILDDIR)/temp |
18 |
cd $(BUILDDIR)/temp && tar -cvf ../$(TARFILE) * |
19 |
gzip -fv9 $(BUILDDIR)/$(TARFILE) |
20 |
cd $(BUILDDIR)/temp && zip -9 ../$(ZIPFILE) * |
21 |
|
22 |
cvsbuild: |
23 |
$(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE) |
24 |
cd $(CVSBUILDTEMP) && $(MAKE) dist |
25 |
cp $(CVSBUILDTEMP)/$(BUILDDIR)/$(TARGZFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(TARGZEXT) |
26 |
cp $(CVSBUILDTEMP)/$(BUILDDIR)/$(ZIPFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
27 |
|
28 |
clean: |
29 |
rm -Rf $(BUILDDIR)/temp |
30 |
rm -Rf $(BUILDDIR)/$(ZIPFILE) |
31 |
rm -Rf $(BUILDDIR)/$(TARFILE) |
32 |
rm -Rf $(BUILDDIR)/$(TARGZFILE) |
33 |
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TAREXT) |
34 |
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TARGZEXT) |
35 |
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(ZIPEXT) |
36 |
rm -Rf $(CVSBUILDTEMP) |
37 |
|
38 |
update: |
39 |
$(CVS) -q -d $(CVSROOT) update |
40 |
|
41 |
# for compatibility with other scripts |
42 |
distclean: clean |