summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2016-04-29 15:08:46 +0200
committerPeter Wu <peter@lekensteyn.nl>2016-04-29 15:08:46 +0200
commit77fb67d91af5598ee1c8b19b0e62a7d2eb21b05f (patch)
treebf553e79b0938665db62106ba3d4b506b991a9a9 /Makefile
parent9b7a78be8b811fb2fd7c7c54961a2a9f09530fe4 (diff)
downloadRegexTest-77fb67d91af5598ee1c8b19b0e62a7d2eb21b05f.tar.gz
Add Makefile and gitignore
I don't know ant well enough to write a build.xml, so let's just use a Makefile for now.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e04bc37
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+SRCS = regex/RegexTest.java
+OBJS = $(addprefix bin/,$(SRCS:.java=.class))
+
+$(OBJS): bin/%.class: src/%.java
+ javac -cp lib/automaton.jar -d bin $<
+
+.PHONY: clean run classes
+clean:
+ $(RM) $(OBJS)
+
+classes: $(OBJS)
+
+run:
+ @java -cp lib/automaton.jar:bin regex.RegexTest