about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorLynn Lin <Lin_Lynn@emc.com>2010-07-15 14:38:06 +0800
committerLars Hjemli <hjemli@gmail.com>2010-07-22 23:32:06 +0200
commitab610292014c938a8f4e4004e9365bfc6cf9cbd6 (patch)
tree90fdeda7abec710e7516612828415bfbca444ffa /Makefile
parentMerge branch 'jh/ignorews' (diff)
downloadcgit-pink-ab610292014c938a8f4e4004e9365bfc6cf9cbd6.tar.gz
cgit-pink-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
 
 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
over-highlight'> In the version of zlib in OpenBSD, these fields are of type off_t, which is signed (why?), rather than uLong. 2020-06-07Call static_assert by _Static_assertJune McEnroe OpenBSD doesn't #define static_assert in assert.h and _Static_assert is its real name I guess so why not? 2020-06-07Add OpenBSD to install.shJune McEnroe Straightforward. 2020-06-03Add The Song of AchillesJune McEnroe 2020-06-01Allow redirecting input in everJune McEnroe 2020-05-31Add %c conversion to c scriptJune McEnroe 2020-05-31Add c script to READMEJune McEnroe 2020-05-31Add c scriptJune McEnroe 2020-05-31Update mdoc source URLsJune McEnroe 2020-05-26Remove unfinished PSF fontsJune McEnroe