mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
16 lines
299 B
Makefile
16 lines
299 B
Makefile
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)
|