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