summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-09-19 10:49:08 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-09-19 10:49:08 +0200
commit706f4260ef5175a1134be7764aa9640b28fa2335 (patch)
treea39cee1df5b4ee6582bc6df7a736ac73d24a989d /sol-pretty-printer
parent900db6294298c1eeb8110b73ef8dafc8175ef4a1 (diff)
Continues to implement automated testing.
... in a hacky sort of way.
Diffstat (limited to 'sol-pretty-printer')
-rw-r--r--sol-pretty-printer/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/sol-pretty-printer/Makefile b/sol-pretty-printer/Makefile
index 5390e28..f5c6e7a 100644
--- a/sol-pretty-printer/Makefile
+++ b/sol-pretty-printer/Makefile
@@ -8,6 +8,8 @@ MODEL_DIR ?=
#### Where to find the properties' pretty-print files
TEMPLATE_DIR ?=
+NICE_MESSAGE_FILE ?=
+
#### Binaries
###### JRE binary
JAVA ?= java
@@ -53,8 +55,13 @@ compile: $(CLASSES)
model:
+ifeq ($(strip $(NICE_MESSAGE)),)
solutions: $(SOLUTION_PP_PAIRS) $(MODEL_DIR)/structural.mod $(MODEL_DIR)/string_to_instr.map $(CLASSES)
$(JAVA) -cp $(CLASSPATH) Main $(MODEL_DIR)/structural.mod $(MODEL_DIR)/string_to_instr.map $(SOLUTION_PP_PAIRS)
+else
+solutions: $(SOLUTION_PP_PAIRS) $(MODEL_DIR)/structural.mod $(MODEL_DIR)/string_to_instr.map $(CLASSES)
+ $(JAVA) -cp $(CLASSPATH) Main $(MODEL_DIR)/structural.mod $(MODEL_DIR)/string_to_instr.map $(SOLUTION_PP_PAIRS) > $(NICE_MESSAGE)
+endif
clean:
rm -f $(CLASSES)