]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - Makefile
Refactor(reindex_blog.py): Get rid of `cgi`
[phdru.name/phdru.name.git] / Makefile
index def5c6ca184f757537f7087859943154fb7962f9..9a402a61433761163e71636170883c15c777ba6b 100644 (file)
--- a/Makefile
+++ b/Makefile
 
 
 %.py: %.tmpl
-       umask 022; python2.7 `which cheetah` compile --encoding=koi8-r --settings='encoding="koi8-r"' --nobackup $< && compyle $@ && chmod +x $@
+       umask 022; python3 -m Cheetah.CheetahWrapper compile --encoding=koi8-r --settings='encoding="koi8-r"' --nobackup $< && python3 -m compileall $@ && chmod +x $@
 
 %.html: %.tmpl phd.py phd_site.py
-       umask 022; PYTHONPATH=. PYTHONIOENCODING=koi8-r:replace python2.7 `which cheetah` fill --encoding=koi8-r --settings='encoding="koi8-r"' --nobackup --stdout $< | iconv -c -f utf-8 -t koi8-r >$@
+       umask 022; PYTHONPATH=. PYTHONIOENCODING=koi8-r:replace python3 -m Cheetah.CheetahWrapper fill --encoding=koi8-r --settings='encoding="koi8-r"' --nobackup $<
 
 
 .PHONY: fast