ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/util/build/Makefile
Revision: 1.2
Committed: Wed Feb 5 22:44:31 2003 UTC (21 years, 10 months ago) by tdb
Branch: MAIN
Changes since 1.1: +2 -2 lines
Log Message:
Yet another thing I overlooked. The ChangeLog should go in all dists.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for build
2 tdb 1.2 # $Id: Makefile,v 1.1 2003/02/05 14:27:58 tdb Exp $
3 tdb 1.1
4     include ../Config.inc
5    
6     BUILDFILES = uk
7    
8     .PHONY : all
9     all : dist
10    
11     .PHONY : clean
12     clean :
13     rm -Rf $(BUILDFILES)
14     rm -f $(PACKAGE)
15     rm -f $(CHANGELOG)
16     rm -Rf $(DISTDIR)
17     rm -f $(TARFILE) $(TARGZFILE) $(ZIPFILE)
18     rm -f $(TARGZFILESIG) $(ZIPFILESIG)
19     rm -f $(BINTARFILE) $(BINTARGZFILE) $(BINZIPFILE)
20     rm -f $(BINTARGZFILESIG) $(BINZIPFILESIG)
21     rm -Rf $(DOCDIR) $(SRCDIR)
22     rm -f $(MKDISTBINCHECK) $(MKDISTCHECK) $(MKDISTFILESCHECK) $(MKDISTFILESBINCHECK)
23    
24     .PHONY : package
25     package : $(PACKAGE)
26    
27     $(PACKAGE) : $(MCOMPILECHECK)
28     rm -f $(PACKAGE)
29     jar -cf $(PACKAGE) $(BUILDFILES)
30    
31     .PHONY : dist-bin
32     dist-bin : $(MKDISTBINCHECK) $(MKDISTFILESBINCHECK)
33    
34     .PHONY : dist
35     dist : $(MKDISTCHECK) $(MKDISTFILESCHECK)
36    
37     .PHONY : mk-dist-bin
38     mk-dist-bin : $(MKDISTBINCHECK)
39     $(MKDISTBINCHECK) : $(PACKAGE) $(CHANGELOG)
40     if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi
41     echo "CVS" > TAR_EXCLUDE_TMP
42     echo ".#*" >> TAR_EXCLUDE_TMP
43 tdb 1.2 tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc ChangeLog README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - )
44 tdb 1.1 rm -f TAR_EXCLUDE_TMP
45     @touch $(MKDISTBINCHECK)
46     @rm -f $(MKDISTFILESCHECK)
47    
48     .PHONY : mk-dist
49     mk-dist : $(MKDISTCHECK)
50     $(MKDISTCHECK) : $(PACKAGE) $(JAVADOCCHECK) $(SRCCHECK) $(CHANGELOG)
51     if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi
52     echo "CVS" > TAR_EXCLUDE_TMP
53     echo ".#*" >> TAR_EXCLUDE_TMP
54     tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc src ChangeLog doc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - )
55     rm -f TAR_EXCLUDE_TMP
56     @touch $(MKDISTCHECK)
57     @rm -f $(MKDISTFILESCHECK)
58    
59     .PHONY : mk-distfiles
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     -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(TARGZFILE)
66     zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/*
67     -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(ZIPFILE)
68     @touch $(MKDISTFILESCHECK)
69    
70     .PHONY : mk-distfiles-bin
71     mk-distfiles-bin : $(MKDISTFILESBINCHECK)
72     $(MKDISTFILESBINCHECK) :
73     if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi
74     tar -cvf $(DISTDEST)/$(BINTARFILE) $(DISTDIR)
75     gzip -fv9 $(DISTDEST)/$(BINTARFILE)
76     -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(BINTARGZFILE)
77     zip -r -9 $(DISTDEST)/$(BINZIPFILE) $(DISTDIR)/*
78     -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(BINZIPFILE)
79     @touch $(MKDISTFILESBINCHECK)
80    
81     include $(MKINC)