From ab610292014c938a8f4e4004e9365bfc6cf9cbd6 Mon Sep 17 00:00:00 2001 From: Lynn Lin Date: Thu, 15 Jul 2010 14:38:06 +0800 Subject: Makefile: do not include dependency-file on `make clean` When envoking clean target, make should not perform the dependency file generation triggered by include. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3a4d974..8b426fe 100644 --- a/Makefile +++ b/Makefile @@ -139,7 +139,9 @@ cgit: $(OBJECTS) libgit cgit.o: VERSION --include $(OBJECTS:.o=.d) +ifneq "$(MAKECMDGOALS)" "clean" + -include $(OBJECTS:.o=.d) +endif libgit: $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) libgit.a -- cgit v1.2.3-57-g22cb