]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - Makefile
Compile phd_pp_ru.tmpl if it's newer than phd_pp_ru.py.
[phdru.name/phdru.name.git] / Makefile
index 26253412667fae06382be5bce2676c3e34063d2f..0d4e3e07cc7fe09763c18ac4b415a6eea8354aec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,11 @@ phd.pp.ru: blog html
 blog:
        ./reindex_blog_ru
 
+phd_pp_ru.py: phd_pp_ru.tmpl
+       @(umask 022; cheetah compile --nobackup $<)
+
 templates = $(shell find ../htdocs/phd.pp.ru -type f -name \*.tmpl -print)
 htmls = $(patsubst %.tmpl,%.html,$(templates))
 
 .PHONY: html
-html: $(htmls)
+html: phd_pp.py phd_pp_ru.py $(htmls)