| #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/toocramming/FuzzyLocation.class \ |
| classes/org/rivoreo/minecraft/toocramming/SpongePlugin.class \ |
| classes/org/rivoreo/minecraft/toocramming/SpongePlugin$$1.class |
| |
| default: classes too-cramming.jar |
| |
| too-cramming.jar: $(CLASSES) classes/mcmod.info |
| cd classes && $(JAR) -c $(patsubst classes/%,%,$(subst $$,\$$,$^)) > ../$@ |
| |
| clean: |
| rm -f too-cramming.jar $(CLASSES) classes/mcmod.info |
| |
| classes: |
| mkdir $@ |
| |
| classes/%.class: %.java |
| $(JAVAC) -classpath $(SPONGE_CLASS_PATH):$(CLASSPATH) -d classes $< |
| |
| classes/%$$*.class: %.java |