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