about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorLynn Lin2010-07-15 14:38:06 +0800
committerLars Hjemli2010-07-22 23:32:06 +0200
commitab610292014c938a8f4e4004e9365bfc6cf9cbd6 (patch)
tree90fdeda7abec710e7516612828415bfbca444ffa /Makefile
parentMerge branch 'jh/ignorews' (diff)
downloadcgit-ab610292014c938a8f4e4004e9365bfc6cf9cbd6.tar.gz
cgit-ab610292014c938a8f4e4004e9365bfc6cf9cbd6.zip
Makefile: do not include dependency-file on `make clean`
When envoking clean target, make should not perform the dependency file
generation triggered by include.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 3a4d974..8b426fe 100644 --- a/Makefile +++ b/Makefile
@@ -139,7 +139,9 @@ cgit: $(OBJECTS) libgit
139 139
140cgit.o: VERSION 140cgit.o: VERSION
141 141
142-include $(OBJECTS:.o=.d) 142ifneq "$(MAKECMDGOALS)" "clean"
143 -include $(OBJECTS:.o=.d)
144endif
143 145
144libgit: 146libgit:
145 $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) libgit.a 147 $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) libgit.a