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