ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/build/Makefile
Revision: 1.1
Committed: Sun Feb 16 14:52:44 2003 UTC (21 years, 9 months ago) by tdb
Branch: MAIN
Log Message:
New style build system for the php jibble.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for build
2     # $Id$
3    
4     include ../Config.inc
5    
6     .PHONY : all
7     all : dist
8    
9     .PHONY : clean
10     clean :
11     rm -Rf $(FILES)
12     rm -f $(CHANGELOG)
13     rm -Rf $(DISTDIR)
14     rm -f $(TARFILE) $(TARGZFILE) $(ZIPFILE)
15     rm -f $(TARGZFILESIG) $(ZIPFILESIG)
16     rm -f $(MKDISTCHECK) $(MKDISTFILESCHECK)
17     rm -Rf $(TMPDIR)
18    
19     .PHONY : dist
20     dist : $(MKDISTCHECK) $(MKDISTFILESCHECK)
21    
22     .PHONY : mk-dist
23     mk-dist : $(MKDISTCHECK)
24     $(MKDISTCHECK) : $(MCOMPILECHECK) $(CHANGELOG)
25     if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi
26     echo "CVS" > TAR_EXCLUDE_TMP
27     echo ".#*" >> TAR_EXCLUDE_TMP
28     tar -cf - -X TAR_EXCLUDE_TMP ChangeLog -C $(TMPDIR) `cd $(TMPDIR) && echo *` | ( cd $(DISTDIR) && tar -xf - )
29     rm -f TAR_EXCLUDE_TMP
30     @touch $(MKDISTCHECK)
31     @rm -f $(MKDISTFILESCHECK)
32    
33     .PHONY : mk-distfiles
34     mk-distfiles : $(MKDISTFILESCHECK)
35     $(MKDISTFILESCHECK) :
36     if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi
37     tar -cvf $(DISTDEST)/$(TARFILE) $(DISTDIR)
38     gzip -fv9 $(DISTDEST)/$(TARFILE)
39     -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(TARGZFILE)
40     zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/*
41     -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(ZIPFILE)
42     @touch $(MKDISTFILESCHECK)
43    
44     include $(MKINC)