summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-17 10:42:43 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-17 10:42:43 +0200
commit0f0af24525c614ebef7e7f8130ffced38d2da59a (patch)
tree31f6da3c0b70229740fbcfd2ec71fc965e28f1cd /instr-to-kodkod/Makefile
parent3e019d57fab57afe7aad373385f32a23bd178941 (diff)
Improves parameters handling
Diffstat (limited to 'instr-to-kodkod/Makefile')
-rw-r--r--instr-to-kodkod/Makefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/instr-to-kodkod/Makefile b/instr-to-kodkod/Makefile
index fb2662a..6db785e 100644
--- a/instr-to-kodkod/Makefile
+++ b/instr-to-kodkod/Makefile
@@ -1,20 +1,31 @@
+## Target(s) Configuration #####################################################
+MODEL_FILE = "../data/instructions/example_1.sl"
+LEVEL_DIR = "../data/level/"
+## Executables #################################################################
JAVAC = javac
JAVA = java
-SOURCES = $(wildcard src/*.java)
-CLASSES = $(SOURCES:.java=.class)
-CLASSPATH = "kodkod.jar:./src/:org.sat4j.core.jar"
-TEST_FILE = "./system_minus_fun.sl"
DOWNLOADER = wget
+
+## Java Config #################################################################
+CLASSPATH = "kodkod.jar:./src/:org.sat4j.core.jar"
+
+## Dependencies ################################################################
JAR_SOURCE = https://noot-noot.org/onera_2017/jar/
REQUIRED_JARS = kodkod.jar org.sat4j.core.jar
+## Makefile Magic ##############################################################
+SOURCES = $(wildcard src/*.java)
+CLASSES = $(SOURCES:.java=.class)
+
+## Makefile Rules ##############################################################
+
all: $(CLASSES)
clean:
rm -f $(CLASSES)
run: $(CLASSES) $(REQUIRED_JARS)
- $(JAVA) -cp $(CLASSPATH) Main $(TEST_FILE)
+ $(JAVA) -cp $(CLASSPATH) Main $(LEVEL_DIR) $(MODEL_FILE)
%.class: %.java $(REQUIRED_JARS)
$(JAVAC) -cp $(CLASSPATH) $<