1 |
tdb |
1.2 |
# Makefile for build |
2 |
tdb |
1.11 |
# $Id: Makefile,v 1.10 2002/06/07 16:12:47 tdb Exp $ |
3 |
tdb |
1.2 |
|
4 |
|
|
include ../Config.inc |
5 |
|
|
|
6 |
|
|
BUILDFILES = uk |
7 |
|
|
|
8 |
tdb |
1.10 |
all : dist |
9 |
tdb |
1.2 |
|
10 |
|
|
clean : |
11 |
|
|
rm -Rf $(BUILDFILES) |
12 |
tdb |
1.11 |
rm -f $(PACKAGE) |
13 |
|
|
rm -f $(UTILPACKAGE) |
14 |
|
|
rm -f $(CHANGELOG) |
15 |
tdb |
1.10 |
rm -Rf $(DISTDIR) |
16 |
tdb |
1.11 |
rm -f $(TARFILE) |
17 |
|
|
rm -f $(TARGZFILE) |
18 |
|
|
rm -f $(ZIPFILE) |
19 |
|
|
rm -Rf $(DOCDIR) $(SRCDIR) |
20 |
|
|
rm -f $(MKDISTBINCHECK) $(MKDISTCHECK) $(MKDISTFILESCHECK) |
21 |
tdb |
1.2 |
|
22 |
tdb |
1.7 |
package : $(PACKAGE) |
23 |
tdb |
1.2 |
|
24 |
|
|
$(PACKAGE) : $(BUILDCHECK) |
25 |
tdb |
1.11 |
rm -f $(PACKAGE) |
26 |
tdb |
1.2 |
@echo "Main-Class: $(MAINCLASS)" > MANIFEST_TMP |
27 |
|
|
@echo "Class-Path: $(CLPATH)" >> MANIFEST_TMP |
28 |
|
|
jar -cmf MANIFEST_TMP $(PACKAGE) $(BUILDFILES) |
29 |
|
|
rm -f MANIFEST_TMP |
30 |
tdb |
1.4 |
|
31 |
|
|
packageutil : $(UTILPACKAGE) |
32 |
|
|
|
33 |
|
|
$(UTILPACKAGE) : $(BUILDCHECK) |
34 |
|
|
jar -cf $(UTILPACKAGE) $(BUILDFILES) |
35 |
tdb |
1.10 |
|
36 |
|
|
dist-bin : mk-dist-bin mk-distfiles |
37 |
|
|
|
38 |
|
|
dist : mk-dist mk-distfiles |
39 |
|
|
|
40 |
tdb |
1.11 |
mk-dist-bin : $(MKDISTBINCHECK) |
41 |
|
|
$(MKDISTBINCHECK) : $(PACKAGE) $(CHANGELOG) |
42 |
tdb |
1.10 |
if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi |
43 |
|
|
echo "CVS" > TAR_EXCLUDE_TMP |
44 |
|
|
echo ".#*" >> TAR_EXCLUDE_TMP |
45 |
|
|
tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - ) |
46 |
|
|
rm -f TAR_EXCLUDE_TMP |
47 |
tdb |
1.11 |
@touch $(MKDISTBINCHECK) |
48 |
|
|
@rm -f $(MKDISTFILESCHECK) |
49 |
tdb |
1.10 |
|
50 |
tdb |
1.11 |
mk-dist : $(MKDISTCHECK) |
51 |
|
|
$(MKDISTCHECK) : $(PACKAGE) $(JAVADOCCHECK) $(SRCCHECK) $(CHANGELOG) |
52 |
tdb |
1.10 |
if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi |
53 |
|
|
echo "CVS" > TAR_EXCLUDE_TMP |
54 |
|
|
echo ".#*" >> TAR_EXCLUDE_TMP |
55 |
|
|
tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc src ChangeLog doc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - ) |
56 |
|
|
rm -f TAR_EXCLUDE_TMP |
57 |
tdb |
1.11 |
@touch $(MKDISTCHECK) |
58 |
|
|
@rm -f $(MKDISTFILESCHECK) |
59 |
tdb |
1.10 |
|
60 |
tdb |
1.11 |
mk-distfiles : $(MKDISTFILESCHECK) |
61 |
|
|
$(MKDISTFILESCHECK) : |
62 |
tdb |
1.10 |
if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi |
63 |
|
|
tar -cvf $(DISTDEST)/$(TARFILE) $(DISTDIR) |
64 |
|
|
gzip -fv9 $(DISTDEST)/$(TARFILE) |
65 |
|
|
zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/* |
66 |
tdb |
1.11 |
@touch $(MKDISTFILESCHECK) |
67 |
tdb |
1.2 |
|
68 |
|
|
include $(MKINC) |