blob: 6701724566019c84568335e92e9dd706853ce2de [file] [log] [blame] [raw]
#JDK_HOME = /opt/jdk1.7.0_80
JDK_HOME = /opt/jdk1.8.0_65
JAVAC = $(JDK_HOME)/bin/javac
JAR = $(JDK_HOME)/bin/jar
#BUKKIT_CLASS_PATH = /opt/minecraft/forge-cauldron-1.7.10-1.1206.01.170-server.jar
#SPONGE_CLASS_PATH = /export/home/minecraft/chemistry-sponge/mods/spongeforge-1.12.2-2838-7.1.7.jar
SPONGE_CLASS_PATH = /opt/minecraft/sponge/spongeapi-7.1.0-shaded.jar
CLASSES := \
classes/org/rivoreo/minecraft/snapshot/Snapshot.class \
classes/org/rivoreo/minecraft/snapshot/ZFSSnapshot.class \
classes/org/rivoreo/minecraft/snapshot/SpongePlugin.class \
classes/org/rivoreo/minecraft/snapshot/SpongePlugin$$1.class \
classes/org/rivoreo/minecraft/snapshot/SpongePlugin$$2.class \
classes/org/rivoreo/minecraft/snapshot/SpongePlugin$$3.class \
classes/org/rivoreo/minecraft/snapshot/SpongePlugin$$4.class
default: classes snapshot.jar
snapshot.jar: $(CLASSES) classes/mcmod.info
cd classes && $(JAR) -c $(patsubst classes/%,%,$(subst $$,\$$,$^)) > ../$@
clean:
rm -f snapshot.jar $(CLASSES) classes/mcmod.info
classes:
mkdir $@
classes/%.class: %.java
$(JAVAC) -source 1.7 -target 1.7 -classpath $(SPONGE_CLASS_PATH):$(CLASSPATH) -d classes $<
classes/%$$*.class: %.java