summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b444d41..d080098 100644
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,13 @@ JAVAC = javac
ANTLR_COMPLETE = lib/antlr-4.13.1-complete.jar
JAVAC_FLAGS = -cp $(ANTLR_COMPLETE) -Xlint:deprecation -d out
SRC_DIR = src
+PARSER_DIR = src/parser
BIN_DIR = out
-MAIN_CLASS = Main
+MAIN_CLASS = com.clp.project.Main
+PARSEALL_CLASS = com.clp.project.ParseAll
SOURCES = $(wildcard $(SRC_DIR)/*.java)
-GRAMMARS = $(SRC_DIR)/Python3Lexer.g4 $(SRC_DIR)/Python3Parser.g4
-ANTLR_OUTPUT = $(SRC_DIR)/Python3Lexer.java $(SRC_DIR)/Python3Parser.java $(SRC_DIR)/Python3ParserListener.java $(SRC_DIR)/Python3ParserBaseListener.java
+GRAMMARS = $(PARSER_DIR)/Python3Lexer.g4 $(PARSER_DIR)/Python3Parser.g4
+ANTLR_OUTPUT = $(PARSER_DIR)/*.java
DATE = $(shell date +%Y%m%d-%H%M%S)
ARGS =
@@ -20,7 +22,7 @@ run:
java -cp $(ANTLR_COMPLETE):$(BIN_DIR) $(MAIN_CLASS) $(ARGS)
runall:
- java -cp $(ANTLR_COMPLETE):$(BIN_DIR) ParseAll $(ARGS)
+ java -cp $(ANTLR_COMPLETE):$(BIN_DIR) $(PARSEALL_CLASS) $(ARGS)
clean:
rm -rf $(BIN_DIR)/* trees/*