blob: 7825631f0db06cae37ce055527d956ce2c6b7fa2 [file] [log] [blame] [raw]
JDK_HOME := /opt/jdk1.7.0_80
JDK_JAVAC = $(JDK_HOME)/bin/javac
JDK_JAVAC_FLAGS = -source 1.5 -target 1.5
JAR = $(JDK_HOME)/bin/jar
CLASSES := \
build/rivoreo/config/Configuration.class \
build/rivoreo/config/JavaPropertiesConfiguration.class \
default: build config.jar
config.jar: build/COPYING $(CLASSES)
cd build && $(JAR) -c $(patsubst build/%,%,$(subst $$,\$$,$^)) > ../$@
clean:
rm -f config.jar build/COPYING $(CLASSES)
build:
mkdir $@
build/%.class: %.java
$(JDK_JAVAC) $(JDK_JAVAC_FLAGS) -d build $<
build/%$$*.class: %.java
build/COPYING: COPYING
cp -p $< $@