ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/build/Makefile
Revision: 1.5
Committed: Thu Jan 18 23:41:28 2001 UTC (23 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.4: +9 -5 lines
Log Message:
Fixed the problem of the CVS control directories being added to the tar and zip
files unnecessarily. This has hopefully also fixed the problem on FreeBSD where
all of the .class files were accidently being added too.

File Contents

# User Rev Content
1 tdb 1.2 # Makefile for build
2 tdb 1.5 # $Id: Makefile,v 1.4 2001/01/16 01:36:22 tdb1 Exp $
3 tdb 1.2
4     include ../Config.inc
5    
6     BUILDFILES = uk
7    
8     all : package
9    
10     clean :
11     rm -Rf $(BUILDFILES)
12     rm -Rf $(PACKAGE)
13 tdb 1.4 rm -Rf $(UTILPACKAGE)
14 tdb 1.2 rm -Rf $(ARCNAME)*$(TAREXT)
15     rm -Rf $(ARCNAME)*$(TARGZEXT)
16     rm -Rf $(ARCNAME)*$(ZIPEXT)
17    
18 tdb 1.5 package : $(PACKAGE) maketar makezip
19 tdb 1.2
20     $(PACKAGE) : $(BUILDCHECK)
21     @echo "Main-Class: $(MAINCLASS)" > MANIFEST_TMP
22     @echo "Class-Path: $(CLPATH)" >> MANIFEST_TMP
23     jar -cmf MANIFEST_TMP $(PACKAGE) $(BUILDFILES)
24     rm -f MANIFEST_TMP
25 tdb 1.4
26     packageutil : $(UTILPACKAGE)
27    
28     $(UTILPACKAGE) : $(BUILDCHECK)
29     jar -cf $(UTILPACKAGE) $(BUILDFILES)
30 tdb 1.5
31     maketar :
32     tar -cvf $(TARFILE) $(PACKAGE) `ls -d lib/* | grep -v CVS` `ls -d etc/* | grep -v CVS` README run.sh
33     gzip -fv9 $(TARFILE)
34    
35     makezip :
36     zip -R -9 $(ZIPFILE) $(PACKAGE) `ls -d lib/* | grep -v CVS` `ls -d etc/* | grep -v CVS` README run.bat
37 tdb 1.2
38     include $(MKINC)