diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..404738b --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# ex: set tabstop=4 noexpandtab: +PYTHON=python +CHEETAH=cheetah +TEMPLATES=$(wildcard *.tmpl) +TEMPLATE_MODS=$(patsubst %.tmpl,%.py,$(TEMPLATES)) +.SECONDARY: $(TEMPLATE_MODS) +KS=$(wildcard *.ks) + +all: $(TEMPLATE_MODS) + +%.py: %.tmpl + $(CHEETAH) compile --settings='useStackFrames=False' $< + + +ks: $(TEMPLATES) ../images.yaml + python kickstarter.py -m ../images.yaml + +clean: + rm -f $(TEMPLATE_MODS) + rm -f $(addsuffix .bak,$(TEMPLATE_MODS)) + rm -f *.pyc *.pyo |