]> git.phdru.name Git - phdru.name/phdru.name.git/blob - Makefile
Change POST to GET
[phdru.name/phdru.name.git] / Makefile
1 # Makefile.
2 #
3 # This file is a part of phdru.name homepage/blog/news generator scripts.
4
5 # __author__ = "Oleg Broytman <phd@phdru.name>"
6 # __copyright__ = "Copyright (C) 2006-2013 PhiloSoft Design"
7
8
9 %.py: %.tmpl
10         umask 022; cheetah compile --nobackup $< && compyle $@
11
12 %.html: %.tmpl
13         umask 022; PYTHONPATH=. cheetah fill --nobackup --stdout $< | iconv -f utf-8 > $@
14
15
16 .PHONY: fast
17 fast: news html
18
19
20 .PHONY: all
21 all: phdru.name
22
23
24 .PHONY: phdru.name
25 phdru.name: news blog
26
27
28 .PHONY: blog
29 blog: phd_site.py atom_10.py rss_20.py
30         ./reindex_blog_ru
31         $(MAKE) html
32
33
34 templates = $(shell find ../htdocs/phdru.name -type f -name \*.tmpl -print)
35 htmls = $(patsubst %.tmpl,%.html,$(templates))
36
37 .PHONY: html
38 html: phd_site.py $(htmls)
39
40
41 .PHONY: news
42 news: atom_10.py rss_20.py
43         (umask 022; PYTHONPATH=. ./make-news.py en ../htdocs/phdru.name && ./make-news.py ru ../htdocs/phdru.name/Russian)