From: Charles McGarvey Date: Fri, 25 Jan 2013 05:48:08 +0000 (-0700) Subject: use jar(1) instead of zip(1) to create the jar file X-Git-Tag: v0.3.4~1 X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=fffcb780fe9f39a0487e5acfef5b7c10679ada65;p=chaz%2Fvimcoder use jar(1) instead of zip(1) to create the jar file --- diff --git a/Makefile b/Makefile index 2c75ed9..325ca32 100644 --- 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