summaryrefslogtreecommitdiff
path: root/templates/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'templates/Makefile')
-rw-r--r--templates/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/Makefile b/templates/Makefile
new file mode 100644
index 0000000..d2d8ed2
--- /dev/null
+++ b/templates/Makefile
@@ -0,0 +1,15 @@
+CHEETAH=cheetah
+TEMPLATES=$(wildcard *.tmpl)
+TEMPLATE_PYFILES := $(patsubst %.tmpl,%.py,$(TEMPLATES))
+
+## Catch-all tagets
+default: $(TEMPLATE_PYFILES)
+
+%.py: %.tmpl
+ $(CHEETAH) c $<
+templates: $(TEMPLATE_PYFILES)
+template: templates
+
+clean:
+ rm -rf .\#* \#* *.pyz *.bak
+ @rm -f $(TEMPLATE_PYFILES)