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.1 by tdb, Mon Dec 11 20:22:51 2000 UTC vs.
Revision 1.11 by tdb, Sun Jan 26 14:02:52 2003 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
12 <        rm -Rf $(PACKAGE)
11 >        rm -Rf $(BUILDFILES)
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) :
25 <        @echo "Main-Class: uk.ac.ukc.iscream.core.Core" > MANIFEST_TMP
26 <        @echo "Class-Path: /usr/local/work/co610/JacORB/lib/idl.jar /usr/local/work/co610/JacORB/lib/jacorb.jar /home/proj/co600_10/xml-lib/jaxp.jar /home/proj/co600_10/xml-lib/parser.jar" >> MANIFEST_TMP
27 <        jar -cvmf MANIFEST_TMP $(PACKAGE) $(FILES)
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
30 <        @echo "-----------------------------"
31 <        @echo "to run: java -jar $(PACKAGE)"
32 <        @echo "-----------------------------"
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