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