1 |
# Makefile for php webreports |
2 |
# $Id: Makefile,v 1.2 2001/10/10 17:12:15 tdb1 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 |
|
12 |
all: dist |
13 |
|
14 |
dist: |
15 |
mkdir -p $(BUILDDIR)/temp |
16 |
cp -Rp $(FILES) $(BUILDDIR)/temp |
17 |
cd $(BUILDDIR)/temp && tar -cvf ../$(TARFILE) * |
18 |
gzip -fv9 $(BUILDDIR)/$(TARFILE) |
19 |
cd $(BUILDDIR)/temp && zip -9 ../$(ZIPFILE) * |
20 |
|
21 |
cvsbuild: |
22 |
$(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE) |
23 |
cd $(CVSBUILDTEMP) && $(MAKE) dist |
24 |
cp $(CVSBUILDTEMP)/$(BUILDDIR)/$(TARGZFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(TARGZEXT) |
25 |
cp $(CVSBUILDTEMP)/$(BUILDDIR)/$(ZIPFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
26 |
|
27 |
clean: |
28 |
rm -Rf $(BUILDDIR)/temp |
29 |
rm -Rf $(BUILDDIR)/$(ZIPFILE) |
30 |
rm -Rf $(BUILDDIR)/$(TARFILE) |
31 |
rm -Rf $(BUILDDIR)/$(TARGZFILE) |
32 |
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TAREXT) |
33 |
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TARGZEXT) |
34 |
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(ZIPEXT) |
35 |
rm -Rf $(CVSBUILDTEMP) |
36 |
|
37 |
update: |
38 |
$(CVS) -q -d $(CVSROOT) update |
39 |
|
40 |
# for compatibility with other scripts |
41 |
distclean: clean |