From 8b34288ea017b456971ad48d960bc70236a3d162 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Wed, 25 Apr 2018 16:31:15 +0200 Subject: [PATCH] Makefile.cpp: fix .PHONY --- makefiles/Makefile.cpp.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/makefiles/Makefile.cpp.mk b/makefiles/Makefile.cpp.mk index b4e54fd833..cc246a32ea 100755 --- a/makefiles/Makefile.cpp.mk +++ b/makefiles/Makefile.cpp.mk @@ -10,8 +10,6 @@ else @echo endif -.PHONY: ccc rcc clean_cc clean_compat ccexe - # Main target .PHONY: cc # Build C++ OR-Tools. cc: ortoolslibs ccexe @@ -197,6 +195,7 @@ clean_cc: -$(DELREC) $(OR_ROOT)src$Sgen$Sflatzinc$S* -$(DELREC) $(OR_ROOT)objs$Sflatzinc$S* +.PHONY: clean_compat clean_compat: -$(DELREC) $(OR_ROOT)constraint_solver -$(DELREC) $(OR_ROOT)linear_solver @@ -300,6 +299,7 @@ strawberry_fields_with_column_generation \ tsp \ weighted_tardiness_sat +.PHONY: ccexe ccexe: $(addsuffix $E, $(addprefix $(BIN_DIR)/, $(CC_EXAMPLES))) # CVRPTW common library @@ -791,9 +791,10 @@ $(LIB_DIR)/$(LIB_PREFIX)ortools.$(LIB_SUFFIX): \ $(OR_TOOLS_LD_FLAGS) # compile and run C++ examples - +.PHONY: ccc ccc: $(BIN_DIR)$S$(basename $(notdir $(EX)))$E +.PHONY: rcc rcc: $(BIN_DIR)$S$(basename $(notdir $(EX)))$E @echo running $(BIN_DIR)$S$(basename $(notdir $(EX)))$E $(BIN_DIR)$S$(basename $(notdir $(EX)))$E $(ARGS)