ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/build/Makefile
Revision: 1.12
Committed: Sat Feb 1 19:08:54 2003 UTC (21 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.11: +14 -5 lines
Log Message:
A continuation of my last commit on all this Makefile reworking. I think
I've managed to get the dependencies working quite well now. As long as
the builds are done from the top level Makefile it should all be fine. If
you try from, say, the build directory it might not notice things changing
in the source files.

File Contents

# User Rev Content
1 tdb 1.2 # Makefile for build
2 tdb 1.12 # $Id: Makefile,v 1.11 2003/01/26 14:02:52 tdb Exp $
3 tdb 1.2
4     include ../Config.inc
5    
6     BUILDFILES = uk
7    
8 tdb 1.12 .PHONY : all
9 tdb 1.10 all : dist
10 tdb 1.2
11 tdb 1.12 .PHONY : clean
12 tdb 1.2 clean :
13     rm -Rf $(BUILDFILES)
14 tdb 1.11 rm -f $(PACKAGE)
15     rm -f $(UTILPACKAGE)
16     rm -f $(CHANGELOG)
17 tdb 1.10 rm -Rf $(DISTDIR)
18 tdb 1.11 rm -f $(TARFILE)
19     rm -f $(TARGZFILE)
20     rm -f $(ZIPFILE)
21     rm -Rf $(DOCDIR) $(SRCDIR)
22     rm -f $(MKDISTBINCHECK) $(MKDISTCHECK) $(MKDISTFILESCHECK)
23 tdb 1.2
24 tdb 1.12 .PHONY : package
25 tdb 1.7 package : $(PACKAGE)
26 tdb 1.2
27 tdb 1.12 $(PACKAGE) : $(IDLCHECK) $(MCOMPILECHECK)
28 tdb 1.11 rm -f $(PACKAGE)
29 tdb 1.2 @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 tdb 1.4
34 tdb 1.12 .PHONY : packageutil
35 tdb 1.4 packageutil : $(UTILPACKAGE)
36    
37 tdb 1.12 $(UTILPACKAGE) : $(MCOMPILECHECK)
38 tdb 1.4 jar -cf $(UTILPACKAGE) $(BUILDFILES)
39 tdb 1.10
40 tdb 1.12 .PHONY : dist-bin
41     dist-bin : $(MKDISTBINCHECK) $(MKDISTFILESCHECK)
42 tdb 1.10
43 tdb 1.12 .PHONY : dist
44     dist : $(MKDISTCHECK) $(MKDISTFILESCHECK)
45 tdb 1.10
46 tdb 1.12 .PHONY : mk-dist-bin
47 tdb 1.11 mk-dist-bin : $(MKDISTBINCHECK)
48     $(MKDISTBINCHECK) : $(PACKAGE) $(CHANGELOG)
49 tdb 1.10 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 tdb 1.11 @touch $(MKDISTBINCHECK)
55     @rm -f $(MKDISTFILESCHECK)
56 tdb 1.10
57 tdb 1.12 .PHONY : mk-dist
58 tdb 1.11 mk-dist : $(MKDISTCHECK)
59     $(MKDISTCHECK) : $(PACKAGE) $(JAVADOCCHECK) $(SRCCHECK) $(CHANGELOG)
60 tdb 1.10 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 tdb 1.11 @touch $(MKDISTCHECK)
66     @rm -f $(MKDISTFILESCHECK)
67 tdb 1.10
68 tdb 1.12 .PHONY : mk-distfiles
69 tdb 1.11 mk-distfiles : $(MKDISTFILESCHECK)
70     $(MKDISTFILESCHECK) :
71 tdb 1.10 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 tdb 1.11 @touch $(MKDISTFILESCHECK)
76 tdb 1.2
77     include $(MKINC)