From: Oleg Broytman Date: Tue, 13 Jul 2021 21:36:19 +0000 (+0300) Subject: Feat(Makefile): Update every html when `phd_site.tmpl` was changed X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=1f45bffea52a37591fa62c019d36bd0980e889f5;p=phdru.name%2Fphdru.name.git Feat(Makefile): Update every html when `phd_site.tmpl` was changed --- diff --git a/Makefile b/Makefile index 6cd9e82..a243cd8 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ %.py: %.tmpl umask 022; python2.7 `which cheetah` compile --encoding=koi8-r --settings='encoding="koi8-r"' --nobackup $< && compyle $@ && chmod +x $@ -%.html: %.tmpl +%.html: %.tmpl 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 >$@