blob: 809faf9a63976dec89c20b72e74e4d0ba4e61c35 [file] [log] [blame] [raw]
.PHONY: all clean
all: TMCMR.jar
clean:
rm -rf bin TMCMR.jar .src.lst
TMCMR.jar: $(shell find src)
rm -rf bin TMCMR.jar
cp -r src bin
find src -name *.java >.src.lst
javac -source 1.6 -target 1.6 -d bin @.src.lst
mkdir -p bin/META-INF
echo 'Version: 1.0' >bin/META-INF/MANIFEST.MF
echo 'Main-Class: togos.minecraft.maprend.RegionRenderer' >>bin/META-INF/MANIFEST.MF
cd bin ; zip -9 -r ../TMCMR.jar . ; cd ..