summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d080098..d04c40e 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ PARSER_DIR = src/parser
BIN_DIR = out
MAIN_CLASS = com.clp.project.Main
PARSEALL_CLASS = com.clp.project.ParseAll
-SOURCES = $(wildcard $(SRC_DIR)/*.java)
+SOURCES = $(wildcard $(SRC_DIR)/*.java $(SRC_DIR)/*/*.java $(SRC_DIR)/*/*/*.java)
GRAMMARS = $(PARSER_DIR)/Python3Lexer.g4 $(PARSER_DIR)/Python3Parser.g4
ANTLR_OUTPUT = $(PARSER_DIR)/*.java
DATE = $(shell date +%Y%m%d-%H%M%S)
@@ -18,6 +18,9 @@ all: $(SOURCES) $(ANTLR_OUTPUT)
$(ANTLR_OUTPUT): $(GRAMMARS)
java -jar lib/antlr-4.13.1-complete.jar $^
+build:
+ $(JAVAC) $(JAVAC_FLAGS) $(SOURCES)
+
run:
java -cp $(ANTLR_COMPLETE):$(BIN_DIR) $(MAIN_CLASS) $(ARGS)
@@ -30,4 +33,4 @@ clean:
release: clean
zip -r ../python3-miniparser-$(DATE).zip .
-.PHONY: all run clean release runall
+.PHONY: all build run clean release runall