]> git.phdru.name Git - phdru.name/phdru.name.git/blob - Makefile
Blog feeds.
[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 %.py: %.tmpl
15         @(umask 022; cheetah compile --nobackup $<)
16
17 %.html: %.tmpl
18         @(umask 022; PYTHONPATH=. cheetah fill --nobackup $<)
19
20
21 .PHONY: phd.pp.ru
22 phd.pp.ru: phd_pp_ru.py news blog html
23
24
25 .PHONY: news
26 news: atom_10.py rss_20.py
27         @(umask 022; PYTHONPATH=. ./make-news.py en ../htdocs/phd.pp.ru && ./make-news.py ru ../htdocs/phd.pp.ru/Russian)
28
29
30 .PHONY: blog
31 blog: atom_10.py rss_20.py
32         @./reindex_blog_ru
33
34
35 templates = $(shell find ../htdocs/phd.pp.ru -type f -name \*.tmpl -print)
36 htmls = $(patsubst %.tmpl,%.html,$(templates))
37
38 .PHONY: html
39 html: $(htmls)