+html: phd_site.py $(htmls) special-templates sitemap
+
+
+.PHONY: news
+news: atom_10.py rss_20.py
+ (umask 022; PYTHONPATH=. ./make-news.py en ../htdocs/phdru.name && ./make-news.py ru ../htdocs/phdru.name/Russian)
+
+
+SITEMAP = ../htdocs/phdru.name/sitemap.xml
+
+.PHONY: sitemap
+sitemap: $(SITEMAP)
+
+$(SITEMAP): $(allfiles)
+ sitemap_gen.py --config=sitemaps/phdru.name-config.xml
+
+
+.PHONY: special-templates
+special-templates: ../htdocs/phdru.name/Russian/Software/instant-messengers/instant-messengers-lj.html ../htdocs/phdru.name/Russian/remote-work-bio/remote-work-bio-lj.html ../htdocs/phdru.name/Russian/remote-work-bio/remote-work-bio2-lj.html
+
+../htdocs/phdru.name/Russian/Software/instant-messengers/instant-messengers-lj.html: ../htdocs/phdru.name/Russian/Software/instant-messengers/instant-messengers.html
+ { sed -e '1,/alink="#ff0000">/d' \
+ -e 's/<div class="section" id="icq">/<lj-cut text="IM">&/' \
+ -e '/<hr width="90%">/,$$d' $< | sed '1,2d'; \
+ echo '</lj-cut>'; } >$@
+
+../htdocs/phdru.name/Russian/remote-work-bio/remote-work-bio-lj.html: ../htdocs/phdru.name/Russian/remote-work-bio/remote-work-bio.html
+ { sed -e '1,/alink="#ff0000">/d' \
+ -e 's/<div class="section" id="i">/<lj-cut text="АвтоБио...">&/' \
+ -e '/<hr width="90%">/,$$d' $< | sed '1,2d'; \
+ echo '</lj-cut>'; } >$@
+
+../htdocs/phdru.name/Russian/remote-work-bio/remote-work-bio2-lj.html: ../htdocs/phdru.name/Russian/remote-work-bio/remote-work-bio2.html
+ { sed -e '1,/alink="#ff0000">/d' \
+ -e 's/<div class="section" id="ii">/<lj-cut text="Никто не обещал райского сада...">&/' \
+ -e '/<hr width="90%">/,$$d' $< | sed '1,2d'; \
+ echo '</lj-cut>'; } >$@