@matheusbsbs / matheus-bagliano / commits / ec5e0bb860
Fork 0

Makefile: tuck away generated makefile fragments in .depend

When building with COMPUTE_HEADER_DEPENDENCIES on, save dependency information to .depend/ instead of deps/ so it does not show up in ‘ls’ output. Otherwise, the extra directories can be distracting. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Jan 31, 2010 at 15:23 UTC ec5e0bb860bf98008d51b8235d19ed3407141295
1 file changed +3 -3
Makefile
+3 -3
@@ -1692,15 +1692,15 @@ XDIFF_OBJS = xdiff/xdiffi.o xdiff/xprepare.o xdiff/xutils.o xdiff/xemit.o \
1692 xdiff/xmerge.o xdiff/xpatience.o
1693 OBJECTS := $(GIT_OBJS) $(XDIFF_OBJS)
1694
1695 -dep_files := $(foreach f,$(OBJECTS),$(dir $f)deps/$(notdir $f).d)
1695 +dep_files := $(foreach f,$(OBJECTS),$(dir $f).depend/$(notdir $f).d)
1696
1697 ifdef COMPUTE_HEADER_DEPENDENCIES
1698 -dep_dirs := $(addsuffix deps,$(sort $(dir $(OBJECTS))))
1698 +dep_dirs := $(addsuffix .depend,$(sort $(dir $(OBJECTS))))
1699 $(dep_dirs):
1700 mkdir -p $@
1701
1702 missing_dep_dirs := $(filter-out $(wildcard $(dep_dirs)),$(dep_dirs))
1703 -dep_file = $(dir $@)deps/$(notdir $@).d
1703 +dep_file = $(dir $@).depend/$(notdir $@).d
1704 dep_args = -MF $(dep_file) -MMD -MP
1705 ifdef CHECK_HEADER_DEPENDENCIES
1706 $(error cannot compute header dependencies outside a normal build. \