From: Peter Korsgaard Date: Mon, 21 Jun 2010 20:28:38 +0000 (+0200) Subject: package/config: create .depend in object directory X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4c99e8fb068686e8d81fa0b33bf088651f3805f;p=buildroot.git package/config: create .depend in object directory Signed-off-by: Peter Korsgaard --- diff --git a/package/config/Makefile b/package/config/Makefile index 34cc4b705d..f0a030f809 100644 --- a/package/config/Makefile +++ b/package/config/Makefile @@ -5,9 +5,9 @@ srctree := . include Makefile.kconfig #HOSTCFLAGS+=-Dinline="" -include foo.h --include .depend -.depend: $(wildcard *.h *.c) - $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > .depend 2>/dev/null || : +-include $(obj)/.depend +$(obj)/.depend: $(wildcard *.h *.c) + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > $@ 2>/dev/null || : __hostprogs := $(sort $(hostprogs-y) $(hostprogs-m)) host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))