]> Dogcows Code - chaz/vimcoder/commitdiff
use jar(1) instead of zip(1) to create the jar file
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 25 Jan 2013 05:48:08 +0000 (22:48 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 25 Jan 2013 05:48:08 +0000 (22:48 -0700)
Makefile

index 2c75ed9b4354f4148a794067cfd3c7493aa9a706..325ca321b7551fbe0ea92a47db16f9d5afc7dbb3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ classes               = $(sources:src/%.java=%.class)
 all: $(firstword $(classes))
 
 clean:
-       rm -rf META-INF com
+       rm -rf com
 
 distclean: clean
        rm -rf lib
@@ -39,19 +39,14 @@ $(library):
        mkdir -p lib
        curl -o $@ http://www.topcoder.com/contest/classes/ContestApplet.jar
 
-$(jarfile): $(classes) $(resources) META-INF/MANIFEST.MF
+$(jarfile): $(classes) $(resources)
        @echo "Packaging jar file..."
        mkdir -p com/dogcows/resources
        cp src/com/dogcows/resources/* com/dogcows/resources
        rm -f $@
-       zip $@ META-INF/MANIFEST.MF COPYING README $$(find com -type f | sort)
+       jar cvf $@ COPYING README.md com
        @echo "Done."
 
-META-INF/MANIFEST.MF:
-       @echo "Generating MANIFEST.MF..."
-       mkdir -p META-INF
-       printf "Manifest-Version: 1.0\n\n" >$@
-
 
 .PHONY: all clean distclean dist fetch jar
 
This page took 0.024164 seconds and 4 git commands to generate.