From 870ba814eceb1afee4eefb17dab3980549ca73e2 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 13 Sep 2012 11:35:48 -0700 Subject: [PATCH] Makefile: don't always rebuild make.deps The dependencies don't need to be regenerated for "make tags", "make docs", etc. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 91acd7e..2bd61ce 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,10 @@ all: $(LIB_SO) $(DEPS) tests $(DEPS): $(program_C_SRCS) $(program_H_SRCS) $(CXX) -MM $(program_C_SRCS) $(CPPFLAGS) > $(DEPS) +# Only include, rebuild make.deps when it's going to be used +ifeq ($(MAKECMDGOALS),$(DEPS)) include $(DEPS) +endif debug: CPPFLAGS += -DCONFIG_DEBUG debug: all -- 2.34.1