summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec5e0bb)
raw | patch | inline | side by side (parent: ec5e0bb)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Sun, 31 Jan 2010 21:37:25 +0000 (15:37 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 31 Jan 2010 22:08:55 +0000 (14:08 -0800) |
Even if COMPUTE_HEADER_DEPENDENCIES is not set, some .o.d files
might be lying around from previous builds when it was. This
is especially likely because using the CHECK_HEADER_DEPENDENCIES
feature requires building sometimes with COMPUTE... on and
sometimes with it off. At the end of such an exercise, to get
a blank slate, the user ought to be able to just run 'make clean'.
Make it so.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
might be lying around from previous builds when it was. This
is especially likely because using the CHECK_HEADER_DEPENDENCIES
feature requires building sometimes with COMPUTE... on and
sometimes with it off. At the end of such an exercise, to get
a blank slate, the user ought to be able to just run 'make clean'.
Make it so.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index c9391390b972a6459bce6c58ffd099034c97f0ae..93e1a9218e21f91fae10be331192ff708325797d 100644 (file)
--- a/Makefile
+++ b/Makefile
OBJECTS := $(GIT_OBJS) $(XDIFF_OBJS)
dep_files := $(foreach f,$(OBJECTS),$(dir $f).depend/$(notdir $f).d)
+dep_dirs := $(addsuffix .depend,$(sort $(dir $(OBJECTS))))
ifdef COMPUTE_HEADER_DEPENDENCIES
-dep_dirs := $(addsuffix .depend,$(sort $(dir $(OBJECTS))))
$(dep_dirs):
mkdir -p $@