]> git.phdru.name Git - phdru.name/phdru.name.git/blob - Makefile
Generate news templates from text source files.
[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 ../htdocs/phd.pp.ru/news.tmpl: news_en
15         @(umask 022; PYTHONPATH=.; export PYTHONPATH; ./make-news.py en '' ../htdocs/phd.pp.ru/news.tmpl)
16
17 ../htdocs/phd.pp.ru/Russian/news.tmpl: news_ru
18         @(umask 022; PYTHONPATH=.; export PYTHONPATH; ./make-news.py ru Russian ../htdocs/phd.pp.ru/Russian/news.tmpl)
19
20 templates = $(shell find ../htdocs/phd.pp.ru -type f -name \*.tmpl -print)
21 htmls = $(patsubst %.tmpl,%.html,$(templates))
22
23 .PHONY: html
24 html: phd_pp.py phd_pp_ru.py ../htdocs/phd.pp.ru/news.tmpl ../htdocs/phd.pp.ru/Russian/news.tmpl $(htmls)