about summary refs log tree commit diff
path: root/mk/templates.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/templates.mk')
-rw-r--r--mk/templates.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/templates.mk b/mk/templates.mk
index 8e8b28643f5c..ab99168bb7a5 100644
--- a/mk/templates.mk
+++ b/mk/templates.mk
@@ -8,5 +8,8 @@ define instantiate-template
 
 endef
 
+%.h: %.h.in
+	$(trace-gen) rm -f $@ && ./config.status --quiet --header=$@
+
 %: %.in
-	$(trace-gen) ./config.status --quiet --file $@
+	$(trace-gen) rm -f $@ && ./config.status --quiet --file=$@