3 # This file is a part of phdru.name homepage/blog/news generator scripts.
5 # __author__ = "Oleg Broytman <phd@phdru.name>"
6 # __copyright__ = "Copyright (C) 2006-2016 PhiloSoft Design"
9 .SUFFIXES: # Clear the suffix list
10 .SUFFIXES: .py .tmpl .html
14 umask 022; cheetah compile --nobackup $< && compyle $@
17 umask 022; PYTHONPATH=. cheetah fill --nobackup --stdout $< | iconv -f utf-8 > $@
33 blog: phd_site.py atom_10.py rss_20.py
38 templates = $(shell find ../htdocs/phdru.name -type f -name \*.tmpl -print)
39 htmls = $(patsubst %.tmpl,%.html,$(templates))
42 html: phd_site.py $(htmls)
46 news: atom_10.py rss_20.py
47 (umask 022; PYTHONPATH=. ./make-news.py en ../htdocs/phdru.name && ./make-news.py ru ../htdocs/phdru.name/Russian)