summaryrefslogtreecommitdiffabout
authorLynn Lin <Lin_Lynn@emc.com>2010-07-15 06:38:06 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2010-07-22 21:32:06 (UTC)
commitab610292014c938a8f4e4004e9365bfc6cf9cbd6 (patch) (unidiff)
tree90fdeda7abec710e7516612828415bfbca444ffa
parent6821d8ea4a64d15b8f284d1af01ab184ef1e76c3 (diff)
downloadcgit-ab610292014c938a8f4e4004e9365bfc6cf9cbd6.zip
cgit-ab610292014c938a8f4e4004e9365bfc6cf9cbd6.tar.gz
cgit-ab610292014c938a8f4e4004e9365bfc6cf9cbd6.tar.bz2
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 (more/less context) (ignore whitespace changes)
-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
@@ -118,49 +118,51 @@ CFLAGS += -g -Wall -Igit
118CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)' 118CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)'
119CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"' 119CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"'
120CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' 120CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"'
121CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' 121CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"'
122CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"' 122CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"'
123 123
124ifdef NO_ICONV 124ifdef NO_ICONV
125 CFLAGS += -DNO_ICONV 125 CFLAGS += -DNO_ICONV
126endif 126endif
127ifdef NO_STRCASESTR 127ifdef NO_STRCASESTR
128 CFLAGS += -DNO_STRCASESTR 128 CFLAGS += -DNO_STRCASESTR
129endif 129endif
130ifdef NO_OPENSSL 130ifdef NO_OPENSSL
131 CFLAGS += -DNO_OPENSSL 131 CFLAGS += -DNO_OPENSSL
132 GIT_OPTIONS += NO_OPENSSL=1 132 GIT_OPTIONS += NO_OPENSSL=1
133else 133else
134 EXTLIBS += -lcrypto 134 EXTLIBS += -lcrypto
135endif 135endif
136 136
137cgit: $(OBJECTS) libgit 137cgit: $(OBJECTS) libgit
138 $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o cgit $(OBJECTS) $(EXTLIBS) 138 $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o cgit $(OBJECTS) $(EXTLIBS)
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
146 $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) xdiff/lib.a 148 $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) xdiff/lib.a
147 149
148test: all 150test: all
149 $(QUIET_SUBDIR0)tests $(QUIET_SUBDIR1) all 151 $(QUIET_SUBDIR0)tests $(QUIET_SUBDIR1) all
150 152
151install: all 153install: all
152 $(INSTALL) -m 0755 -d $(DESTDIR)$(CGIT_SCRIPT_PATH) 154 $(INSTALL) -m 0755 -d $(DESTDIR)$(CGIT_SCRIPT_PATH)
153 $(INSTALL) -m 0755 cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) 155 $(INSTALL) -m 0755 cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
154 $(INSTALL) -m 0755 -d $(DESTDIR)$(CGIT_DATA_PATH) 156 $(INSTALL) -m 0755 -d $(DESTDIR)$(CGIT_DATA_PATH)
155 $(INSTALL) -m 0644 cgit.css $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css 157 $(INSTALL) -m 0644 cgit.css $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css
156 $(INSTALL) -m 0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png 158 $(INSTALL) -m 0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png
157 159
158uninstall: 160uninstall:
159 rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) 161 rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
160 rm -f $(CGIT_DATA_PATH)/cgit.css 162 rm -f $(CGIT_DATA_PATH)/cgit.css
161 rm -f $(CGIT_DATA_PATH)/cgit.png 163 rm -f $(CGIT_DATA_PATH)/cgit.png
162 164
163doc: man-doc html-doc pdf-doc 165doc: man-doc html-doc pdf-doc
164 166
165man-doc: cgitrc.5.txt 167man-doc: cgitrc.5.txt
166 a2x -f manpage cgitrc.5.txt 168 a2x -f manpage cgitrc.5.txt