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.12 by tdb, Sat Feb 1 19:08:54 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 + .PHONY : all
9 + all : dist
10 +
11 + .PHONY : clean
12   clean :
13 <        rm -Rf uk
14 <        rm -Rf $(PACKAGE)
13 >        rm -Rf $(BUILDFILES)
14 >        rm -f $(PACKAGE)
15 >        rm -f $(UTILPACKAGE)
16 >        rm -f $(CHANGELOG)
17 >        rm -Rf $(DISTDIR)
18 >        rm -f $(TARFILE)
19 >        rm -f $(TARGZFILE)
20 >        rm -f $(ZIPFILE)
21 >        rm -Rf $(DOCDIR) $(SRCDIR)
22 >        rm -f $(MKDISTBINCHECK) $(MKDISTCHECK) $(MKDISTFILESCHECK)
23  
24 + .PHONY : package
25   package : $(PACKAGE)
26  
27 < $(PACKAGE) :
28 <        @echo "Main-Class: uk.ac.ukc.iscream.core.Core" > MANIFEST_TMP
29 <        @echo "Class-Path: ./lib/idl.jar ./lib/jacorb.jar ./lib/jaxp.jar ./lib/parser.jar" >> MANIFEST_TMP
30 <        jar -cvmf MANIFEST_TMP $(PACKAGE) $(FILES)
27 > $(PACKAGE) : $(IDLCHECK) $(MCOMPILECHECK)
28 >        rm -f $(PACKAGE)
29 >        @echo "Main-Class: $(MAINCLASS)" > MANIFEST_TMP
30 >        @echo "Class-Path: $(CLPATH)" >> MANIFEST_TMP
31 >        jar -cmf MANIFEST_TMP $(PACKAGE) $(BUILDFILES)
32          rm -f MANIFEST_TMP
33 <        @echo "-----------------------------"
34 <        @echo "to run: java -jar $(PACKAGE)"
35 <        @echo "-----------------------------"
33 >
34 > .PHONY : packageutil
35 > packageutil : $(UTILPACKAGE)
36 >
37 > $(UTILPACKAGE) : $(MCOMPILECHECK)
38 >        jar -cf $(UTILPACKAGE) $(BUILDFILES)
39 >
40 > .PHONY : dist-bin
41 > dist-bin : $(MKDISTBINCHECK) $(MKDISTFILESCHECK)
42 >
43 > .PHONY : dist
44 > dist : $(MKDISTCHECK) $(MKDISTFILESCHECK)
45 >
46 > .PHONY : mk-dist-bin
47 > mk-dist-bin : $(MKDISTBINCHECK)
48 > $(MKDISTBINCHECK) : $(PACKAGE) $(CHANGELOG)
49 >        if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi
50 >        echo "CVS" > TAR_EXCLUDE_TMP
51 >        echo ".#*" >> TAR_EXCLUDE_TMP
52 >        tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - )
53 >        rm -f TAR_EXCLUDE_TMP
54 >        @touch $(MKDISTBINCHECK)
55 >        @rm -f $(MKDISTFILESCHECK)
56 >
57 > .PHONY : mk-dist
58 > mk-dist : $(MKDISTCHECK)
59 > $(MKDISTCHECK) : $(PACKAGE) $(JAVADOCCHECK) $(SRCCHECK) $(CHANGELOG)
60 >        if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi
61 >        echo "CVS" > TAR_EXCLUDE_TMP
62 >        echo ".#*" >> TAR_EXCLUDE_TMP
63 >        tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc src ChangeLog doc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - )
64 >        rm -f TAR_EXCLUDE_TMP
65 >        @touch $(MKDISTCHECK)
66 >        @rm -f $(MKDISTFILESCHECK)
67 >
68 > .PHONY : mk-distfiles
69 > mk-distfiles : $(MKDISTFILESCHECK)
70 > $(MKDISTFILESCHECK) :
71 >        if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi
72 >        tar -cvf $(DISTDEST)/$(TARFILE) $(DISTDIR)
73 >        gzip -fv9 $(DISTDEST)/$(TARFILE)
74 >        zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/*
75 >        @touch $(MKDISTFILESCHECK)
76 >
77 > include $(MKINC)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines