ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/Makefile
(Generate patch)

Comparing projects/cms/source/reports/php/Makefile (file contents):
Revision 1.3 by tdb, Thu Dec 20 02:26:23 2001 UTC vs.
Revision 1.7 by tdb, Sun Feb 16 21:46:24 2003 UTC

# Line 1 | Line 1
1 < # Makefile for php webreports
1 > # Makefile for the php pages
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` `ls -d logins/* | grep -v CVS`
6 > .PHONY : all
7 > all : dist
8  
9 < all: dist
9 > ### Code Building
10  
11 < dist:
12 <        mkdir -p $(BUILDDIR)/temp
13 <        cp -Rp $(FILES) $(BUILDDIR)/temp
14 <        cd $(BUILDDIR)/temp && tar -cvf ../$(TARFILE) *
15 <        gzip -fv9 $(BUILDDIR)/$(TARFILE)
19 <        cd $(BUILDDIR)/temp && zip -9 ../$(ZIPFILE) *
11 > .PHONY : build
12 > build :
13 >        if test ! -d "$(TMPDIR)"; then mkdir -p $(TMPDIR); fi
14 >        cp -R $(FILES) $(TMPDIR)
15 >        @touch $(MCOMPILECHECK)
16  
17 < 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)
17 > ### Changelog
18  
19 < clean:
20 <        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)
19 > .PHONY : changelog
20 > changelog : $(CHANGELOG)
21  
22 < update:
23 <        $(CVS) -q -d $(CVSROOT) update
22 > .PHONY : mkchangelog
23 > mkchangelog :
24 >        if [ -d $(SOURCEROOT)/CVS ]; then \
25 >                $(CVS2CL) $(CVS2CLFLAGS) > $(CHANGELOG); \
26 >        else \
27 >                echo "Can't generate ChangeLog from non-checked out copy." > $(CHANGELOG); \
28 >        fi
29  
30 < # for compatibility with other scripts
31 < distclean: clean
30 > ### Dist Making
31 >
32 > .PHONY : dist
33 > dist :
34 >        cd $(BUILD) && $(MAKE) dist dest=$(DISTDEST)
35 >
36 > ### Code Cleaning
37 >
38 > .PHONY : clean
39 > clean :
40 >        cd $(BUILD) && $(MAKE) clean ver=$(VERSION)
41 >        rm -f $(MCOMPILECHECK)
42 >
43 > .PHONY : distclean
44 > distclean : clean
45 >        cd $(BUILD) && rm -f $(CLPATH)
46 >        rm -f Config.inc
47 >
48 > ### Install
49 >
50 > .PHONY : install
51 > install : $(MCOMPILECHECK) $(CHANGELOG)
52 >        @echo "-------------------------------------------------------"
53 >        @echo "Installing to $(INSTALLPREFIX)"
54 >        @echo "  copying files to $(INSTALLPREFIX)"
55 >        @mkdir -p $(INSTALLPREFIX)
56 >        @echo "CVS" > TAR_EXCLUDE_TMP
57 >        @echo ".#*" >> TAR_EXCLUDE_TMP
58 >        @tar -cf - -X TAR_EXCLUDE_TMP -C $(TMPDIR) `cd $(TMPDIR) && echo *` | ( cd $(INSTALLPREFIX) && tar -xf - )
59 >        @rm -f TAR_EXCLUDE_TMP
60 >        @echo "  copying text information files to $(INSTALLPREFIX)"
61 >        @cp COPYING $(CHANGELOG) $(INSTALLPREFIX)
62 >        @echo "Completed install to $(INSTALLPREFIX)"
63 >        @echo "-------------------------------------------------------"
64 >
65 > ### Global Include
66 >
67 > include $(MKINC)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines