X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Makefile;h=7e582419ca5f8ba025fe8d592233add7ace32b54;hb=cd0bc3bdbbd72fd312e43a692b8ea26a62dda78f;hp=d0089fdfe52b1bf67ad544f33a31ab0b7936e8f9;hpb=2bbcdb50ca244a7ae8115f3d5dfc54d317c2f5a3;p=phdru.name%2Fphdru.name.git diff --git a/Makefile b/Makefile index d0089fd..7e58241 100644 --- a/Makefile +++ b/Makefile @@ -35,13 +35,23 @@ blog: phd_site.py atom_10.py rss_20.py $(MAKE) html +allfiles = $(shell find ../htdocs/phdru.name -type f ! -name sitemap.xml -print) templates = $(shell find ../htdocs/phdru.name -type f -name \*.tmpl -print) htmls = $(patsubst %.tmpl,%.html,$(templates)) .PHONY: html -html: phd_site.py $(htmls) +html: phd_site.py $(htmls) 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