.PHONY: phdru.name
-phdru.name: news blog
+phdru.name: blog news
.PHONY: blog
htmls = $(patsubst %.tmpl,%.html,$(templates))
.PHONY: html
-html: phd_site.py $(htmls) sitemap
+html: phd_site.py $(htmls) special-templates sitemap
.PHONY: news
$(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/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>'; } >$@