]> git.phdru.name Git - phdru.name/phdru.name.git/blob - Makefile
Compile phd_pp_ru.tmpl if it's newer than phd_pp_ru.py.
[phdru.name/phdru.name.git] / Makefile
1 %.html: %.tmpl
2         @(umask 022; PYTHONPATH=.; export PYTHONPATH; cheetah fill --nobackup $<)
3
4 .PHONY: phd.pp.ru
5 phd.pp.ru: blog html
6
7 .PHONY: blog
8 blog:
9         ./reindex_blog_ru
10
11 phd_pp_ru.py: phd_pp_ru.tmpl
12         @(umask 022; cheetah compile --nobackup $<)
13
14 templates = $(shell find ../htdocs/phd.pp.ru -type f -name \*.tmpl -print)
15 htmls = $(patsubst %.tmpl,%.html,$(templates))
16
17 .PHONY: html
18 html: phd_pp.py phd_pp_ru.py $(htmls)