Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit master 1/1] package/config: create .depend in object directory
@ 2010-06-21 21:07 Peter Korsgaard
  2010-06-30 18:22 ` Quotient Remainder
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2010-06-21 21:07 UTC (permalink / raw)
  To: buildroot


commit: http://git.buildroot.net/buildroot/commit/?id=a4c99e8fb068686e8d81fa0b33bf088651f3805f
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/config/Makefile |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/config/Makefile b/package/config/Makefile
index 34cc4b7..f0a030f 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)))
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-01  7:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21 21:07 [Buildroot] [git commit master 1/1] package/config: create .depend in object directory Peter Korsgaard
2010-06-30 18:22 ` Quotient Remainder
2010-07-01  7:15   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox