From f9770091df88ba618c0e04fed8b6e5c6ee58e3b7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 15 Mar 2006 15:21:36 +0000 Subject: [PATCH] Generalized .tmpl => .py rule. Some shell-related cleanup. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@30 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 835200a..253ab74 100644 --- a/Makefile +++ b/Makefile @@ -11,25 +11,25 @@ # __copyright__ = "Copyright (C) 2006 PhiloSoft Design" +%.py: %.tmpl + @(umask 022; cheetah compile --nobackup $<) + %.html: %.tmpl - @(umask 022; PYTHONPATH=.; export PYTHONPATH; cheetah fill --nobackup $<) + @(umask 022; PYTHONPATH=. cheetah fill --nobackup $<) + .PHONY: phd.pp.ru phd.pp.ru: phd_pp_ru.py news blog html -phd_pp_ru.py: phd_pp_ru.tmpl - @(umask 022; cheetah compile --nobackup $<) - - .PHONY: news news: ../htdocs/phd.pp.ru/news.tmpl ../htdocs/phd.pp.ru/Russian/news.tmpl ../htdocs/phd.pp.ru/news.tmpl: news_en - @(umask 022; PYTHONPATH=.; export PYTHONPATH; ./make-news.py en ../htdocs/phd.pp.ru) + @(umask 022; PYTHONPATH=. ./make-news.py en ../htdocs/phd.pp.ru) ../htdocs/phd.pp.ru/Russian/news.tmpl: news_ru - @(umask 022; PYTHONPATH=.; export PYTHONPATH; ./make-news.py ru ../htdocs/phd.pp.ru/Russian) + @(umask 022; PYTHONPATH=. ./make-news.py ru ../htdocs/phd.pp.ru/Russian) .PHONY: blog -- 2.39.2