From: Oleg Broytman Date: Wed, 15 Mar 2006 14:53:01 +0000 (+0000) Subject: Added SVN keywords. Split news as a separate target. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d39393257362fb011f13be87a493960c8da30117;p=phdru.name%2Fphdru.name.git Added SVN keywords. Split news as a separate target. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@25 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/Makefile b/Makefile index 26c8cf4..4e9372e 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,45 @@ +# Makefile. +# +# This file is a part of phd.pp.ru homepage/blog/news generator scripts. +# Author: Oleg BroytMann . +# Copyright: (C) 2006 PhiloSoft Design. + + +# __version__ = \ +# __revision__ = "$Id$" +# __date__ = "$Date$"[7:-2] +# __author__ = "Oleg Broytmann " +# __copyright__ = "Copyright (C) 2006 PhiloSoft Design" + + %.html: %.tmpl @(umask 022; PYTHONPATH=.; export PYTHONPATH; cheetah fill --nobackup $<) .PHONY: phd.pp.ru -phd.pp.ru: blog html +phd.pp.ru: phd_pp_ru.py news blog html -.PHONY: blog -blog: - ./reindex_blog_ru 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/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) + +.PHONY: blog +blog: + @./reindex_blog_ru + + 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 ../htdocs/phd.pp.ru/news.tmpl ../htdocs/phd.pp.ru/Russian/news.tmpl $(htmls) +html: $(htmls)