]> git.phdru.name Git - phdru.name/phdru.name.git/blob - Makefile
__version__
[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 # __version__ = "$Revision$"[11:-2]
8 # __revision__ = "$Id$"
9 # __date__ = "$Date$"[7:-2]
10 # __author__ = "Oleg Broytmann <phd@phd.pp.ru>"
11 # __copyright__ = "Copyright (C) 2006 PhiloSoft Design"
12
13
14 %.html: %.tmpl
15         @(umask 022; PYTHONPATH=.; export PYTHONPATH; cheetah fill --nobackup $<)
16
17 .PHONY: phd.pp.ru
18 phd.pp.ru: phd_pp_ru.py news blog html
19
20
21 phd_pp_ru.py: phd_pp_ru.tmpl
22         @(umask 022; cheetah compile --nobackup $<)
23
24
25 .PHONY: news
26 news: ../htdocs/phd.pp.ru/news.tmpl ../htdocs/phd.pp.ru/Russian/news.tmpl
27
28 ../htdocs/phd.pp.ru/news.tmpl: news_en
29         @(umask 022; PYTHONPATH=.; export PYTHONPATH; ./make-news.py en '' ../htdocs/phd.pp.ru/news.tmpl)
30
31 ../htdocs/phd.pp.ru/Russian/news.tmpl: news_ru
32         @(umask 022; PYTHONPATH=.; export PYTHONPATH; ./make-news.py ru Russian ../htdocs/phd.pp.ru/Russian/news.tmpl)
33
34
35 .PHONY: blog
36 blog:
37         @./reindex_blog_ru
38
39
40 templates = $(shell find ../htdocs/phd.pp.ru -type f -name \*.tmpl -print)
41 htmls = $(patsubst %.tmpl,%.html,$(templates))
42
43 .PHONY: html
44 html: $(htmls)