summaryrefslogtreecommitdiff
path: root/templates/Makefile
blob: df1b31f48ecab63cb25a6e3127f30f5702e4253f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 .\#* \#* *.pyc *.bak
	@rm -f $(TEMPLATE_PYFILES)