]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Makefile.
authorOleg Broytman <phd@phdru.name>
Sat, 25 Feb 2006 13:27:46 +0000 (13:27 +0000)
committerOleg Broytman <phd@phdru.name>
Sat, 25 Feb 2006 13:27:46 +0000 (13:27 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@5 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..4bce2f4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+%.html: %.tmpl
+       (umask 022; PYTHONPATH=.; export PYTHONPATH; cheetah fill --nobackup $<)
+
+.PHONY: phd.pp.ru
+phd.pp.ru: blog html
+
+.PHONY: blog
+blog:
+       ./reindex_blog_ru
+
+templates = $(shell find ../htdocs/phd.pp.ru -type f -name \*.tmpl -print)
+htmls = $(patsubst %.tmpl,%.html,$(templates))
+
+.PHONY: html
+html: $(htmls)