From 706f4260ef5175a1134be7764aa9640b28fa2335 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Tue, 19 Sep 2017 10:49:08 +0200 Subject: Continues to implement automated testing. ... in a hacky sort of way. --- sol-pretty-printer/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sol-pretty-printer/Makefile') 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) -- cgit v1.2.3-70-g09d2