blob: f8a6c420b2a76d1f346cc4f1604272fc444e85ae [file] [log] [blame] [raw]
.PHONY: all clean
all: TMCMR.jar.urn
clean:
rm -rf bin TMCMR.jar .src.lst
TMCMR.jar: $(shell find src)
rm -rf bin TMCMR.jar
cp -r src bin
find src/main/java -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 ..
%.urn: % TMCMR.jar
java -cp TMCMR.jar togos.minecraft.maprend.io.IDFile "$<" >"$@"