ENTRIES := $(basename $(wildcard entries/news_*.xml)) HTMLS := $(notdir $(addsuffix .html, $(ENTRIES))) OLD_HTMLS := $(addprefix old_layout/, $(HTMLS)) all: index.html info.html $(HTMLS) old_layout/index.html $(OLD_HTMLS) index.rss _redirects entries/index.xml: entries/news_*.xml ( \ cd entries/; \ echo "" > index.xml ; \ for file in news_*.xml; do echo "$$file" ; done >> index.xml ; \ echo "" >> index.xml ; \ ) %.rss: entries/%.xml rss.xsl xsltproc -o $*.rss rss.xsl entries/$*.xml %.html: entries/%.xml heise.xsl xsltproc -o $*.html --stringparam file entries/$*.xml heise.xsl entries/$*.xml old_layout/%.html: entries/%.xml heise.xsl xsltproc -o old_layout/$*.html --stringparam file entries/$*.xml old_layout/heise.xsl entries/$*.xml _redirects: ./genredirects.pl ./genredirects.pl > "$@"