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

Comparing projects/cms/source/server/build/Makefile (file contents):
Revision 1.7 by tdb, Fri Jan 19 00:16:34 2001 UTC vs.
Revision 1.11 by tdb, Sun Jan 26 14:02:52 2003 UTC

# Line 5 | Line 5 | include ../Config.inc
5  
6   BUILDFILES = uk
7  
8 < all : package
8 > all : dist
9  
10   clean :
11          rm -Rf $(BUILDFILES)
12 <        rm -Rf $(PACKAGE)
13 <        rm -Rf $(UTILPACKAGE)
14 <        rm -Rf $(ARCNAME)*$(TAREXT)
15 <        rm -Rf $(ARCNAME)*$(TARGZEXT)
16 <        rm -Rf $(ARCNAME)*$(ZIPEXT)
12 >        rm -f $(PACKAGE)
13 >        rm -f $(UTILPACKAGE)
14 >        rm -f $(CHANGELOG)
15 >        rm -Rf $(DISTDIR)
16 >        rm -f $(TARFILE)
17 >        rm -f $(TARGZFILE)
18 >        rm -f $(ZIPFILE)
19 >        rm -Rf $(DOCDIR) $(SRCDIR)
20 >        rm -f $(MKDISTBINCHECK) $(MKDISTCHECK) $(MKDISTFILESCHECK)
21  
22   package : $(PACKAGE)
23  
24   $(PACKAGE) : $(BUILDCHECK)
25 +        rm -f $(PACKAGE)
26          @echo "Main-Class: $(MAINCLASS)" > MANIFEST_TMP
27          @echo "Class-Path: $(CLPATH)" >> MANIFEST_TMP
28          jar -cmf MANIFEST_TMP $(PACKAGE) $(BUILDFILES)
29          rm -f MANIFEST_TMP
25        tar -cvf $(TARFILE) $(PACKAGE) `ls -d lib/* | grep -v CVS` `ls -d etc/* | grep -v CVS` README run.sh
26        gzip -fv9 $(TARFILE)
27        zip -9 $(ZIPFILE) $(PACKAGE) `ls -d lib/* | grep -v CVS` `ls -d etc/* | grep -v CVS` README run.bat
30  
31   packageutil : $(UTILPACKAGE)
32  
33   $(UTILPACKAGE) : $(BUILDCHECK)
34          jar -cf $(UTILPACKAGE) $(BUILDFILES)
35 +
36 + dist-bin : mk-dist-bin mk-distfiles
37 +
38 + dist : mk-dist mk-distfiles
39 +
40 + mk-dist-bin : $(MKDISTBINCHECK)
41 + $(MKDISTBINCHECK) : $(PACKAGE) $(CHANGELOG)
42 +        if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi
43 +        echo "CVS" > TAR_EXCLUDE_TMP
44 +        echo ".#*" >> TAR_EXCLUDE_TMP
45 +        tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - )
46 +        rm -f TAR_EXCLUDE_TMP
47 +        @touch $(MKDISTBINCHECK)
48 +        @rm -f $(MKDISTFILESCHECK)
49 +
50 + mk-dist : $(MKDISTCHECK)
51 + $(MKDISTCHECK) : $(PACKAGE) $(JAVADOCCHECK) $(SRCCHECK) $(CHANGELOG)
52 +        if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi
53 +        echo "CVS" > TAR_EXCLUDE_TMP
54 +        echo ".#*" >> TAR_EXCLUDE_TMP
55 +        tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc src ChangeLog doc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - )
56 +        rm -f TAR_EXCLUDE_TMP
57 +        @touch $(MKDISTCHECK)
58 +        @rm -f $(MKDISTFILESCHECK)
59 +
60 + mk-distfiles : $(MKDISTFILESCHECK)
61 + $(MKDISTFILESCHECK) :
62 +        if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi
63 +        tar -cvf $(DISTDEST)/$(TARFILE) $(DISTDIR)
64 +        gzip -fv9 $(DISTDEST)/$(TARFILE)
65 +        zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/*
66 +        @touch $(MKDISTFILESCHECK)
67  
68   include $(MKINC)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines