10 |
|
clean : |
11 |
|
rm -Rf $(BUILDFILES) |
12 |
|
rm -Rf $(PACKAGE) |
13 |
+ |
rm -Rf $(UTILPACKAGE) |
14 |
|
rm -Rf $(ARCNAME)*$(TAREXT) |
15 |
|
rm -Rf $(ARCNAME)*$(TARGZEXT) |
16 |
|
rm -Rf $(ARCNAME)*$(ZIPEXT) |
17 |
|
|
18 |
< |
package : $(PACKAGE) |
18 |
> |
package : $(PACKAGE) maketar makezip |
19 |
|
|
20 |
|
$(PACKAGE) : $(BUILDCHECK) |
21 |
|
@echo "Main-Class: $(MAINCLASS)" > MANIFEST_TMP |
22 |
|
@echo "Class-Path: $(CLPATH)" >> MANIFEST_TMP |
23 |
|
jar -cmf MANIFEST_TMP $(PACKAGE) $(BUILDFILES) |
24 |
|
rm -f MANIFEST_TMP |
25 |
< |
tar -cvf $(TARFILE) $(PACKAGE) lib etc README run.sh |
25 |
> |
|
26 |
> |
packageutil : $(UTILPACKAGE) |
27 |
> |
|
28 |
> |
$(UTILPACKAGE) : $(BUILDCHECK) |
29 |
> |
jar -cf $(UTILPACKAGE) $(BUILDFILES) |
30 |
> |
|
31 |
> |
maketar : |
32 |
> |
tar -cvf $(TARFILE) $(PACKAGE) `ls -d lib/* | grep -v CVS` `ls -d etc/* | grep -v CVS` README run.sh |
33 |
|
gzip -fv9 $(TARFILE) |
34 |
< |
zip -R -9 $(ZIPFILE) $(PACKAGE) lib/* etc/* README run.bat |
34 |
> |
|
35 |
> |
makezip : |
36 |
> |
zip -R -9 $(ZIPFILE) $(PACKAGE) `ls -d lib/* | grep -v CVS` `ls -d etc/* | grep -v CVS` README run.bat |
37 |
|
|
38 |
|
include $(MKINC) |