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.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/templates.mk b/mk/templates.mk
index ab99168bb7a5..c7ac7afbff27 100644
--- a/mk/templates.mk
+++ b/mk/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