make Makefile robust against deleted headers
authorMatthias Braun <matze@braunis.de>
Wed, 1 Dec 2010 13:55:01 +0000 (13:55 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 1 Dec 2010 13:55:01 +0000 (13:55 +0000)
[r28176]

Makefile

index ecc9e6b..8277cf3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,11 @@ VPATH = $(srcdir)
 .PHONY: all
 all: firm
 
+# This rule is necessary so that make does not abort if headers get deleted
+# (the deleted header might still be referenced in a .d file)
+%.h:
+       @:
+
 # A very naive way to create a config.h if it is missing
 $(srcdir)config.h:
        @echo MakeConfig $@