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.1.2.2 by tdb, Mon Dec 11 20:55:00 2000 UTC vs.
Revision 1.10 by tdb, Fri Jun 7 16:12:47 2002 UTC

# Line 1 | Line 1
1   # Makefile for build
2   # $Id$
3  
4 < PACKAGE = iscream.jar
5 < FILES = uk
4 > include ../Config.inc
5  
6 < all : package
6 > BUILDFILES = uk
7  
8 + all : dist
9 +
10   clean :
11 <        rm -Rf uk
11 >        rm -Rf $(BUILDFILES)
12          rm -Rf $(PACKAGE)
13 +        rm -Rf $(UTILPACKAGE)
14 +        rm -Rf $(CHANGELOG)
15 +        rm -Rf $(DISTDIR)
16 +        rm -Rf $(TARFILE)
17 +        rm -Rf $(TARGZFILE)
18 +        rm -Rf $(ZIPFILE)
19  
20   package : $(PACKAGE)
21  
22 < $(PACKAGE) :
23 <        @echo "Main-Class: uk.ac.ukc.iscream.core.Core" > MANIFEST_TMP
24 <        @echo "Class-Path: ./lib/idl.jar ./lib/jacorb.jar ./lib/jaxp.jar ./lib/parser.jar" >> MANIFEST_TMP
25 <        jar -cvmf MANIFEST_TMP $(PACKAGE) $(FILES)
22 > $(PACKAGE) : $(BUILDCHECK)
23 >        rm -Rf $(PACKAGE)
24 >        @echo "Main-Class: $(MAINCLASS)" > MANIFEST_TMP
25 >        @echo "Class-Path: $(CLPATH)" >> MANIFEST_TMP
26 >        jar -cmf MANIFEST_TMP $(PACKAGE) $(BUILDFILES)
27          rm -f MANIFEST_TMP
28 <        @echo "-----------------------------"
29 <        @echo "to run: java -jar $(PACKAGE)"
30 <        @echo "-----------------------------"
28 >
29 > packageutil : $(UTILPACKAGE)
30 >
31 > $(UTILPACKAGE) : $(BUILDCHECK)
32 >        jar -cf $(UTILPACKAGE) $(BUILDFILES)
33 >
34 > dist-bin : mk-dist-bin mk-distfiles
35 >
36 > dist : mk-dist mk-distfiles
37 >
38 > mk-dist-bin : $(PACKAGE)
39 >        if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi
40 >        echo "CVS" > TAR_EXCLUDE_TMP
41 >        echo ".#*" >> TAR_EXCLUDE_TMP
42 >        tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - )
43 >        rm -f TAR_EXCLUDE_TMP
44 >
45 > mk-dist : $(PACKAGE)
46 >        if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi
47 >        echo "CVS" > TAR_EXCLUDE_TMP
48 >        echo ".#*" >> TAR_EXCLUDE_TMP
49 >        tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc src ChangeLog doc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - )
50 >        rm -f TAR_EXCLUDE_TMP
51 >
52 > mk-distfiles :
53 >        if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi
54 >        tar -cvf $(DISTDEST)/$(TARFILE) $(DISTDIR)
55 >        gzip -fv9 $(DISTDEST)/$(TARFILE)
56 >        zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/*
57 >
58 > include $(MKINC)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines