-TEMPLATES=functions.tmpl skeleton.tmpl
+TEMPLATES=$(wildcard *.tmpl)
OUTPUTS=$(TEMPLATES:.tmpl=.py)
all: ${OUTPUTS}
-${OUTPUTS}:${TEMPLATES}
- cheetah compile $^
+%.py: %.tmpl
+ cheetah compile $<
+
+#${OUTPUTS}:${TEMPLATES}
+# cheetah compile $^
clean:
@rm -f ${OUTPUTS} *.pyo *.pyc *.py.bak