]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Compile phd_pp_ru.tmpl if it's newer than phd_pp_ru.py.
authorOleg Broytman <phd@phdru.name>
Wed, 8 Mar 2006 15:00:18 +0000 (15:00 +0000)
committerOleg Broytman <phd@phdru.name>
Wed, 8 Mar 2006 15:00:18 +0000 (15:00 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@19 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

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)