summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Makefile14
2 files changed, 16 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..088a25a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+bin/
+.*.sw?
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