From ce74db252dac9d7504900944ae0dd7b2d840a5df Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 11 Apr 2020 19:37:18 +0300 Subject: [PATCH] Build: Make `instant-messengers-lj.html` a special html file --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index de032c0..907ee0a 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ all: phdru.name .PHONY: phdru.name -phdru.name: news blog +phdru.name: blog news .PHONY: blog @@ -40,7 +40,7 @@ templates = $(shell find ../htdocs/phdru.name -type f -name \*.tmpl -print) htmls = $(patsubst %.tmpl,%.html,$(templates)) .PHONY: html -html: phd_site.py $(htmls) sitemap +html: phd_site.py $(htmls) special-templates sitemap .PHONY: news @@ -55,3 +55,13 @@ 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/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/
/&/' \ + -e '/
/,$$d' $< | sed '1,2d'; \ + echo '
'; } >$@ -- 2.39.2