From fffcb780fe9f39a0487e5acfef5b7c10679ada65 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Thu, 24 Jan 2013 22:48:08 -0700 Subject: [PATCH] use jar(1) instead of zip(1) to create the jar file --- Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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 -- 2.45.2