ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/build/Makefile
Revision: 1.10
Committed: Fri Jun 7 16:12:47 2002 UTC (22 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.9: +31 -8 lines
Log Message:
My first bash at a new-style Makefile setup. This one generates proper
distfiles in subdirectories with version numbers, etc. I'll port it to the
other parts of i-scream when I've tested it a bit more.
This will also lead the way for me to generate daily snapshots.

File Contents

# User Rev Content
1 tdb 1.2 # Makefile for build
2 tdb 1.10 # $Id: Makefile,v 1.9 2002/05/18 18:16:00 tdb Exp $
3 tdb 1.2
4     include ../Config.inc
5    
6     BUILDFILES = uk
7    
8 tdb 1.10 all : dist
9 tdb 1.2
10     clean :
11     rm -Rf $(BUILDFILES)
12     rm -Rf $(PACKAGE)
13 tdb 1.4 rm -Rf $(UTILPACKAGE)
14 tdb 1.10 rm -Rf $(CHANGELOG)
15     rm -Rf $(DISTDIR)
16     rm -Rf $(TARFILE)
17     rm -Rf $(TARGZFILE)
18     rm -Rf $(ZIPFILE)
19 tdb 1.2
20 tdb 1.7 package : $(PACKAGE)
21 tdb 1.2
22     $(PACKAGE) : $(BUILDCHECK)
23 tdb 1.8 rm -Rf $(PACKAGE)
24 tdb 1.2 @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 tdb 1.4
29     packageutil : $(UTILPACKAGE)
30    
31     $(UTILPACKAGE) : $(BUILDCHECK)
32     jar -cf $(UTILPACKAGE) $(BUILDFILES)
33 tdb 1.10
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 tdb 1.2
58     include $(MKINC)