ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/Makefile
Revision: 1.1
Committed: Mon Mar 26 17:11:16 2001 UTC (23 years, 9 months ago) by tdb
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Log Message:
Build scripts. In essence, these just package up the php pages into a single
archive ready for distribution.

File Contents

# User Rev Content
1 tdb 1.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