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.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/mk/templates.mk b/mk/templates.mk
new file mode 100644
index 000000000000..6d7b1034c45b
--- /dev/null
+++ b/mk/templates.mk
@@ -0,0 +1,12 @@
+template-files :=
+
+# Create the file $(1) from $(1).in by running config.status (which
+# substitutes all ‘@var@’ variables set by the configure script).
+define instantiate-template =
+
+  clean-files += $(1)
+
+endef
+
+%: %.in
+	$(trace-gen) ./config.status --quiet --file $@