From: Oleg Broytman Date: Wed, 8 Mar 2006 15:00:18 +0000 (+0000) Subject: Compile phd_pp_ru.tmpl if it's newer than phd_pp_ru.py. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=7c4a973d60018c64fe1d7aa4d5ec66bcda26f722;p=phdru.name%2Fphdru.name.git Compile phd_pp_ru.tmpl if it's newer than phd_pp_ru.py. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@19 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/Makefile b/Makefile index 2625341..0d4e3e0 100644 --- 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)