ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/Makefile
Revision: 1.4
Committed: Mon Mar 18 13:24:31 2002 UTC (22 years, 7 months ago) by tdb
Branch: MAIN
Changes since 1.3: +3 -2 lines
Log Message:
Merged in the code from the experimental tree. Still a few more things that
I'd like to do, but it's all working now, which is good.

File Contents

# Content
1 # Makefile for php webreports
2 # $Id: Makefile,v 1.3 2001/12/20 02:26:23 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`
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