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 allfiles = $(shell find ../htdocs/phdru.name -type f ! -name sitemap.xml -print)
39 templates = $(shell find ../htdocs/phdru.name -type f -name \*.tmpl -print)
40 htmls = $(patsubst %.tmpl,%.html,$(templates))
43 html: phd_site.py $(htmls) sitemap
47 news: atom_10.py rss_20.py
48 (umask 022; PYTHONPATH=. ./make-news.py en ../htdocs/phdru.name && ./make-news.py ru ../htdocs/phdru.name/Russian)
51 SITEMAP = ../htdocs/phdru.name/sitemap.xml
56 $(SITEMAP): $(allfiles)
57 sitemap_gen.py --config=sitemaps/phdru.name-config.xml