summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-06-21 22:28:38 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-06-21 23:02:07 +0200
commita4c99e8fb068686e8d81fa0b33bf088651f3805f (patch)
treecc6deaeaf73f6ece74abd6cd4a92184db8c36b41 /package
parent2cc210c92fec4dd2977dd6022ddc1e0b77f4c269 (diff)
downloadbuildroot-novena-a4c99e8fb068686e8d81fa0b33bf088651f3805f.tar.gz
buildroot-novena-a4c99e8fb068686e8d81fa0b33bf088651f3805f.zip
package/config: create .depend in object directory
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/config/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/config/Makefile b/package/config/Makefile
index 34cc4b705..f0a030f80 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)))