]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - Makefile
Generate news templates from text source files.
[phdru.name/phdru.name.git] / Makefile
index 0d4e3e07cc7fe09763c18ac4b415a6eea8354aec..26c8cf4488f2d9284ff51190ba1d453717c1fd56 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,8 +11,14 @@ blog:
 phd_pp_ru.py: phd_pp_ru.tmpl
        @(umask 022; cheetah compile --nobackup $<)
 
+../htdocs/phd.pp.ru/news.tmpl: news_en
+       @(umask 022; PYTHONPATH=.; export PYTHONPATH; ./make-news.py en '' ../htdocs/phd.pp.ru/news.tmpl)
+
+../htdocs/phd.pp.ru/Russian/news.tmpl: news_ru
+       @(umask 022; PYTHONPATH=.; export PYTHONPATH; ./make-news.py ru Russian ../htdocs/phd.pp.ru/Russian/news.tmpl)
+
 templates = $(shell find ../htdocs/phd.pp.ru -type f -name \*.tmpl -print)
 htmls = $(patsubst %.tmpl,%.html,$(templates))
 
 .PHONY: html
-html: phd_pp.py phd_pp_ru.py $(htmls)
+html: phd_pp.py phd_pp_ru.py ../htdocs/phd.pp.ru/news.tmpl ../htdocs/phd.pp.ru/Russian/news.tmpl $(htmls)