Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/current/src/Makefile')
-rw-r--r--src/current/src/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/current/src/Makefile b/src/current/src/Makefile
new file mode 100644
index 0000000..2b9d08e
--- /dev/null
+++ b/src/current/src/Makefile
@@ -0,0 +1,18 @@
+
+dslc_src := $(wildcard com/lovullo/dslc/*.java)
+dslc_bin := $(dslc_src:.java=.class)
+
+.PHONY: dslc clean
+
+dslc: dslc.jar
+
+%.class: %.java
+ javac $<
+
+# we explicitly specify a glob on the path because inner classes are compiled
+# into their own files
+dslc.jar: $(dslc_bin)
+ jar cfm $@ dslc.manifest com/lovullo/dslc/*.class
+
+clean:
+ rm -f $(dslc_bin) dslc.jar