clojurefx/Makefile
2020-01-25 04:18:49 +01:00

20 lines
513 B
Makefile

classes:
mkdir classes
classes/clojurefx/ApplicationInitializer.class: src/clojurefx/ApplicationInitializer.java
javac -classpath $$(clojure -Spath) -d classes src/clojurefx/ApplicationInitializer.java
classes/%__init.class: $(wildcard src/%.*)
mkdir -p $(@D)
clojure -e "(compile '`echo "$*" | sed 's/\//\./g' | sed 's/_/-/g'`)"
pom.xml: deps.edn
clojure -Spom
.PHONY: clean
clean:
rm -rf classes target pom.xml *.jar
.PHONY: test
test: classes/clojurefx/ApplicationInitializer.class
clojure -A:test