From f6588bc32fd46d63da6058f37ce799ab948c3513 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 13 Nov 2007 09:52:58 +1100 Subject: dtc: Add missing dependencies for tests At present, the Makefiles will not rebuild trees.o or the dtb files derived from it if testdata.h is updated. This is incorrect, and is because of missing dependency information. This patch fixes the problem by making sure that dependency information is generated from trees.S and dumptrees.c. Signed-off-by: David Gibson --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4d4b98e..9f9bee0 100644 --- a/Makefile +++ b/Makefile @@ -188,6 +188,10 @@ clean: libfdt_clean tests_clean @$(VECHO) DEP $< $(CC) $(CPPFLAGS) -MM -MG -MT "$*.o $@" $< > $@ +%.d: %.S + @$(VECHO) DEP $< + $(CC) $(CPPFLAGS) -MM -MG -MT "$*.o $@" $< > $@ + %.i: %.c @$(VECHO) CPP $@ $(CC) $(CPPFLAGS) -E $< > $@ -- cgit v1.2.1