all: $(firstword $(classes))
clean:
- rm -rf META-INF com
+ rm -rf com
distclean: clean
rm -rf lib
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