]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/web/views/Makefile
Feat(web): Use CheetahTemplate
[m_librarian.git] / m_librarian / web / views / Makefile
diff --git a/m_librarian/web/views/Makefile b/m_librarian/web/views/Makefile
new file mode 100644 (file)
index 0000000..fc8b7be
--- /dev/null
@@ -0,0 +1,14 @@
+.SUFFIXES: # Clear the suffix list
+.SUFFIXES: .py .tmpl .html
+
+
+%.py: %.tmpl
+       cheetah compile --nobackup $< && compyle $@
+
+
+templates = $(shell echo *.tmpl)
+modules = $(patsubst %.tmpl,%.py,$(templates))
+
+
+.PHONY: all
+all: $(modules)