author | Lynn Lin | 2010-07-15 06:38:06 (GMT) |
committer | Lars Hjemli | 2010-07-22 21:32:06 (GMT) |
commit | () () |
tree | |
parent | () |
---|
download |
|
---|
Makefile: do not include dependency-file on `make clean`
When envoking clean target, make should not perform the dependency file
generation triggered by include.
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3a4d974..8b426fe 100644
--- a/
+++ b/
@@ -136,13 +136,15 @@ endif
cgit: $(OBJECTS) libgit
$(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o cgit $(OBJECTS) $(EXTLIBS)
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
$(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) xdiff/lib.a
test: all
阅读(1197) | 评论(0) | 转发(0) |