]> git.phdru.name Git - phdru.name/phdru.name.git/blob - Makefile
Added SVN keywords. Split news as a separate target.
[phdru.name/phdru.name.git] / Makefile
1 # Makefile.
2 #
3 # This file is a part of phd.pp.ru homepage/blog/news generator scripts.
4 # Author: Oleg BroytMann <phd@phd.pp.ru>.
5 # Copyright: (C) 2006 PhiloSoft Design.
6
7
8 # __version__ = \
9 # __revision__ = "$Id$"
10 # __date__ = "$Date$"[7:-2]
11 # __author__ = "Oleg Broytmann <phd@phd.pp.ru>"
12 # __copyright__ = "Copyright (C) 2006 PhiloSoft Design"
13
14
15 %.html: %.tmpl
16         @(umask 022; PYTHONPATH=.; export PYTHONPATH; cheetah fill --nobackup $<)
17
18 .PHONY: phd.pp.ru
19 phd.pp.ru: phd_pp_ru.py news blog html
20
21
22 phd_pp_ru.py: phd_pp_ru.tmpl
23         @(umask 022; cheetah compile --nobackup $<)
24
25
26 .PHONY: news
27 news: ../htdocs/phd.pp.ru/news.tmpl ../htdocs/phd.pp.ru/Russian/news.tmpl
28
29 ../htdocs/phd.pp.ru/news.tmpl: news_en
30         @(umask 022; PYTHONPATH=.; export PYTHONPATH; ./make-news.py en '' ../htdocs/phd.pp.ru/news.tmpl)
31
32 ../htdocs/phd.pp.ru/Russian/news.tmpl: news_ru
33         @(umask 022; PYTHONPATH=.; export PYTHONPATH; ./make-news.py ru Russian ../htdocs/phd.pp.ru/Russian/news.tmpl)
34
35
36 .PHONY: blog
37 blog:
38         @./reindex_blog_ru
39
40
41 templates = $(shell find ../htdocs/phd.pp.ru -type f -name \*.tmpl -print)
42 htmls = $(patsubst %.tmpl,%.html,$(templates))
43
44 .PHONY: html
45 html: $(htmls)