]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Feat(Makefile): Update every html when `phd_site.tmpl` was changed
authorOleg Broytman <phd@phdru.name>
Tue, 13 Jul 2021 21:36:19 +0000 (00:36 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 13 Jul 2021 21:36:19 +0000 (00:36 +0300)
Makefile

index 6cd9e82736246ed8d4bae6658d467ac2e229ee4d..a243cd8a05016e54821e971f05171de6d0d4a635 100644 (file)
--- 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 >$@