diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 14 |
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 |