summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'instr-to-kodkod/parser/Makefile')
-rw-r--r--instr-to-kodkod/parser/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/instr-to-kodkod/parser/Makefile b/instr-to-kodkod/parser/Makefile
index d26baf4..c3958e0 100644
--- a/instr-to-kodkod/parser/Makefile
+++ b/instr-to-kodkod/parser/Makefile
@@ -45,19 +45,21 @@ ifeq ($(strip $(JAVAC)),)
$(error No Java compiler defined as parameter.)
endif
-################################################################################
+## Makefile Magic ##############################################################
ANTLR_SOURCES = $(wildcard *.g4)
JAVA_SOURCES = $(ANTLR_SOURCES:.g4=.java)
CLASSES = $(JAVA_SOURCES:.java=.class)
CLASSPATH = ".:$(MAIN_PROGRAM_SRC):$(KODKOD_JAR):$(ANTLR_JAR)"
-build: $(CLASSES)
-
-PropertyParser.java: PropertyLexer.g4 PropertyParser.g4
+## Makefile Rules ##############################################################
+compile: $(CLASSES)
clean:
rm -f *.java *.class *.tokens
+########
+PropertyParser.java: PropertyLexer.g4 PropertyParser.g4
+
# Pattern rules can be used to generate multiple target in a single action.
PropertyLexer%java PropertyParser%java: $(ANTLR_SOURCES)
$(JAVA) -jar $(ANTLR_JAR) $^