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