1 |
tdb |
1.1 |
# Makefile for build |
2 |
|
|
# $Id: Makefile,v 1.8 2001/02/27 02:54:51 tdb1 Exp $ |
3 |
|
|
|
4 |
|
|
include ../Config.inc |
5 |
|
|
|
6 |
|
|
BUILDFILES = *.class |
7 |
|
|
OTHERFILES = DBReporter.properties reportlist.conf |
8 |
|
|
|
9 |
|
|
all : package |
10 |
|
|
|
11 |
|
|
clean : |
12 |
|
|
rm -Rf $(BUILDFILES) |
13 |
|
|
rm -Rf $(OTHERFILES) |
14 |
|
|
rm -Rf $(PACKAGE) |
15 |
|
|
rm -Rf $(ARCNAME)*$(TAREXT) |
16 |
|
|
rm -Rf $(ARCNAME)*$(TARGZEXT) |
17 |
|
|
rm -Rf $(ARCNAME)*$(ZIPEXT) |
18 |
|
|
|
19 |
|
|
package : $(PACKAGE) |
20 |
|
|
|
21 |
|
|
$(PACKAGE) : $(BUILDCHECK) |
22 |
|
|
rm -Rf $(PACKAGE) |
23 |
|
|
@echo "Main-Class: $(MAINCLASS)" > MANIFEST_TMP |
24 |
|
|
@echo "Class-Path: $(CLPATH)" >> MANIFEST_TMP |
25 |
|
|
jar -cmf MANIFEST_TMP $(PACKAGE) $(BUILDFILES) |
26 |
|
|
rm -f MANIFEST_TMP |
27 |
|
|
tar -cvf $(TARFILE) $(PACKAGE) $(OTHERFILES) `ls -d lib/* | grep -v CVS` run.sh |
28 |
|
|
gzip -fv9 $(TARFILE) |
29 |
|
|
zip -9 $(ZIPFILE) $(PACKAGE) $(OTHERFILES) `ls -d lib/* | grep -v CVS` run.bat |
30 |
|
|
|
31 |
|
|
include $(MKINC) |