diff options
author | Santo Cariotti <santo@dcariotti.me> | 2024-06-04 14:11:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 14:11:32 +0200 |
commit | 1c8761901b26c0be4d61f3aed5ec0495a558a0e7 (patch) | |
tree | be3177edeaf93cbd57e49f7067418bc8ef0dfdd3 /Makefile | |
parent | 663b99a971f8dd7f7776fe3647f24ce728b3d434 (diff) |
Refactor using package `com.clp.project` (#1)
Co-authored-by: geno <gabriele.genovese2@studio.unibo.it>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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/* |