about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--templates.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates.mk b/templates.mk
index ab99168bb7a5..c7ac7afbff27 100644
--- a/templates.mk
+++ b/templates.mk
@@ -8,8 +8,12 @@ define instantiate-template
 
 endef
 
+ifneq ($(MAKECMDGOALS), clean)
+
 %.h: %.h.in
 	$(trace-gen) rm -f $@ && ./config.status --quiet --header=$@
 
 %: %.in
 	$(trace-gen) rm -f $@ && ./config.status --quiet --file=$@
+
+endif