aboutsummaryrefslogtreecommitdiff
path: root/templates.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-09 16:12:02 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-09 16:12:02 +0100
commit55c9a40613fefda6622aa9acd22cce4006fd1077 (patch)
treecd592d5836af42feeeca64ac3ebb77037b93a076 /templates.mk
parent259086de841d155f7951c2cc50f799a4631aa512 (diff)
Move stuff to top-level
This makes it easier to use with "git subtree".
Diffstat (limited to 'templates.mk')
-rw-r--r--templates.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates.mk b/templates.mk
new file mode 100644
index 000000000..fa91e2509
--- /dev/null
+++ b/templates.mk
@@ -0,0 +1,10 @@
+# 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
+ $(QUIET) ./config.status --quiet --file $@