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) (side-by-side diff)
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) (show whitespace changes)
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3a4d974..8b426fe 100644
--- a/Makefile
+++ b/Makefile
@@ -118,49 +118,51 @@ CFLAGS += -g -Wall -Igit
CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)'
CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"'
CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"'
CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"'
CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"'
ifdef NO_ICONV
CFLAGS += -DNO_ICONV
endif
ifdef NO_STRCASESTR
CFLAGS += -DNO_STRCASESTR
endif
ifdef NO_OPENSSL
CFLAGS += -DNO_OPENSSL
GIT_OPTIONS += NO_OPENSSL=1
else
EXTLIBS += -lcrypto
endif
cgit: $(OBJECTS) libgit
$(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o cgit $(OBJECTS) $(EXTLIBS)
cgit.o: VERSION
+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
$(QUIET_SUBDIR0)tests $(QUIET_SUBDIR1) all
install: all
$(INSTALL) -m 0755 -d $(DESTDIR)$(CGIT_SCRIPT_PATH)
$(INSTALL) -m 0755 cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
$(INSTALL) -m 0755 -d $(DESTDIR)$(CGIT_DATA_PATH)
$(INSTALL) -m 0644 cgit.css $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css
$(INSTALL) -m 0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png
uninstall:
rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
rm -f $(CGIT_DATA_PATH)/cgit.css
rm -f $(CGIT_DATA_PATH)/cgit.png
doc: man-doc html-doc pdf-doc
man-doc: cgitrc.5.txt
a2x -f manpage cgitrc.5.txt