From accbb884e76216fbb244800d21d4eecadc24dbd1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 17 Apr 2007 11:38:21 +0000 Subject: add a basic .depend target to better catch updates in source files --- extra/config/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extra/config') diff --git a/extra/config/Makefile b/extra/config/Makefile index b377d43ef..6bd5bf65d 100644 --- a/extra/config/Makefile +++ b/extra/config/Makefile @@ -7,6 +7,10 @@ include $(top_builddir)Rules.mak include Makefile.kconfig +-include .depend +.depend: $(wildcard *.h *.c) + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > .depend 2>/dev/null || : + __hostprogs := $(sort $(hostprogs-y) $(hostprogs-m)) host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m))) host-cmulti := $(foreach m,$(__hostprogs),\ -- cgit v1.2.3