ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/util/build/Makefile
Revision: 1.4
Committed: Wed Mar 12 09:41:17 2003 UTC (21 years, 9 months ago) by tdb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Log Message:
Fixes to the util build scripts.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for build
2 tdb 1.4 # $Id: Makefile,v 1.3 2003/02/16 20:36:00 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 tdb 1.3 rm -f $(LICFILE)
17 tdb 1.1 rm -Rf $(DISTDIR)
18     rm -f $(TARFILE) $(TARGZFILE) $(ZIPFILE)
19     rm -f $(TARGZFILESIG) $(ZIPFILESIG)
20     rm -f $(BINTARFILE) $(BINTARGZFILE) $(BINZIPFILE)
21     rm -f $(BINTARGZFILESIG) $(BINZIPFILESIG)
22     rm -Rf $(DOCDIR) $(SRCDIR)
23     rm -f $(MKDISTBINCHECK) $(MKDISTCHECK) $(MKDISTFILESCHECK) $(MKDISTFILESBINCHECK)
24    
25     .PHONY : package
26     package : $(PACKAGE)
27    
28     $(PACKAGE) : $(MCOMPILECHECK)
29     rm -f $(PACKAGE)
30     jar -cf $(PACKAGE) $(BUILDFILES)
31    
32     .PHONY : dist-bin
33     dist-bin : $(MKDISTBINCHECK) $(MKDISTFILESBINCHECK)
34    
35     .PHONY : dist
36     dist : $(MKDISTCHECK) $(MKDISTFILESCHECK)
37    
38     .PHONY : mk-dist-bin
39     mk-dist-bin : $(MKDISTBINCHECK)
40     $(MKDISTBINCHECK) : $(PACKAGE) $(CHANGELOG)
41     if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi
42     echo "CVS" > TAR_EXCLUDE_TMP
43     echo ".#*" >> TAR_EXCLUDE_TMP
44 tdb 1.4 tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib ChangeLog README COPYING | ( cd $(DISTDIR) && tar -xf - )
45 tdb 1.1 rm -f TAR_EXCLUDE_TMP
46     @touch $(MKDISTBINCHECK)
47     @rm -f $(MKDISTFILESCHECK)
48    
49     .PHONY : mk-dist
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 tdb 1.4 tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib src ChangeLog doc README COPYING | ( cd $(DISTDIR) && tar -xf - )
56 tdb 1.1 rm -f TAR_EXCLUDE_TMP
57     @touch $(MKDISTCHECK)
58     @rm -f $(MKDISTFILESCHECK)
59    
60     .PHONY : mk-distfiles
61     mk-distfiles : $(MKDISTFILESCHECK)
62     $(MKDISTFILESCHECK) :
63     if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi
64     tar -cvf $(DISTDEST)/$(TARFILE) $(DISTDIR)
65     gzip -fv9 $(DISTDEST)/$(TARFILE)
66     -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(TARGZFILE)
67     zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/*
68     -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(ZIPFILE)
69     @touch $(MKDISTFILESCHECK)
70    
71     .PHONY : mk-distfiles-bin
72     mk-distfiles-bin : $(MKDISTFILESBINCHECK)
73     $(MKDISTFILESBINCHECK) :
74     if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi
75     tar -cvf $(DISTDEST)/$(BINTARFILE) $(DISTDIR)
76     gzip -fv9 $(DISTDEST)/$(BINTARFILE)
77     -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(BINTARGZFILE)
78     zip -r -9 $(DISTDEST)/$(BINZIPFILE) $(DISTDIR)/*
79     -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(BINZIPFILE)
80     @touch $(MKDISTFILESBINCHECK)
81    
82     include $(MKINC)