Chinaunix首页 | 论坛 | 博客
  • 博客访问: 650715
  • 博文数量: 90
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 2018
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-03 13:09
文章分类

全部博文(90)

文章存档

2010年(7)

2009年(23)

2008年(60)

我的朋友

分类: LINUX

2010-10-23 18:24:33






authorLynn 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.
(/ context) ( whitespace changes)
-rw-r--r--4



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

阅读(1203) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~