From e6e39390a3a579d424783113556cc9f3860a92cf Mon Sep 17 00:00:00 2001 From: Sude Date: Sun, 31 May 2015 20:25:28 +0300 Subject: [PATCH] Makefile: Add order-only prerequisite to OBJ_RELEASE and OBJ_DEBUG --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index dadd708..9e7d4d7 100644 --- a/Makefile +++ b/Makefile @@ -75,6 +75,8 @@ debug: before_debug out_debug after_debug out_debug: $(OBJ_DEBUG) $(DEP_DEBUG) $(LD) $(LDFLAGS_DEBUG) $(LIBDIR_DEBUG) $(OBJ_DEBUG) $(LIB_DEBUG) -o $(OUT_DEBUG) +$(OBJ_DEBUG): | before_debug + $(OBJDIR_DEBUG)/main.o: main.cpp $(CXX) $(CFLAGS_DEBUG) $(VERSION) $(INC_DEBUG) -c main.cpp -o $(OBJDIR_DEBUG)/main.o @@ -123,6 +125,8 @@ release: before_release out_release after_release out_release: $(OBJ_RELEASE) $(DEP_RELEASE) $(LD) $(LDFLAGS_RELEASE) $(LIBDIR_RELEASE) $(OBJ_RELEASE) $(LIB_RELEASE) -o $(OUT_RELEASE) +$(OBJ_RELEASE): | before_release + $(OBJDIR_RELEASE)/main.o: main.cpp $(CXX) $(CFLAGS_RELEASE) $(VERSION) $(INC_RELEASE) -c main.cpp -o $(OBJDIR_RELEASE)/main.o