#! /usr/bin/make -f XSLTP ?= xsltproc WK ?= wk WGET ?= wget COMMON=common.xsl sitemap.xml xbel2navi.xsl build all: index.html develop/ja_po.html about.html jgug/index.html comm/ml.html \ google3457c6343c5c4bd1.html \ jgug/authoring.html comm/mlfaq.html comm/howto.html \ docs/index.html howto/anoncvs.html link/index.html \ howto/anonftp.html \ news/index.html \ news/2006.html \ news/2005.html \ news/2004.html \ news/2003.html \ news/2002.html \ news/2000.html \ news/1999.html \ $(patsubst %.xhtml,%.html,$(wildcard summary/*.xhtml)) index.html: index.xhtml news.xsl news/2005.xml $(COMMON) \ cache/gnomedesktop.xml google3457c6343c5c4bd1.html: google3457c6343c5c4bd1.xhtml $(COMMON) develop/ja_po.html: develop/ja_po.xhtml $(COMMON) about.html: about.xhtml $(COMMON) jgug/index.html: jgug/index.xhtml $(COMMON) jgug/authoring.html: jgug/authoring.xhtml $(COMMON) comm/ml.html: comm/ml.xhtml $(COMMON) comm/mlfaq.html: comm/mlfaq.xhtml $(COMMON) comm/howto.html: comm/howto.xhtml $(COMMON) docs/index.html: docs/index.xhtml $(COMMON) howto/anoncvs.html: howto/anoncvs.xhtml $(COMMON) howto/anonftp.html: howto/anonftp.xhtml $(COMMON) news/index.html: news/index.xhtml $(COMMON) news/2006.html: news/2006.xhtml news.xsl news/2006.xml $(COMMON) news/2005.html: news/2005.xhtml news.xsl news/2005.xml $(COMMON) news/2004.html: news/2004.xhtml news.xsl news/2004.xml $(COMMON) news/2003.html: news/2003.xhtml news.xsl news/2003.xml $(COMMON) news/2002.html: news/2002.xhtml news.xsl news/2002.xml $(COMMON) news/2000.html: news/2000.xhtml news.xsl news/2000.xml $(COMMON) news/1999.html: news/1999.xhtml news.xsl news/1999.xml $(COMMON) link/index.html: link/index.xhtml $(COMMON) cache/gnomedesktop.xml: cache/gnomedesktop.rss _rss2xhtml.xsl $(XSLTP) _rss2xhtml.xsl cache/gnomedesktop.rss > $@.tmp && mv $@.tmp $@ cache/gnomedesktop.rss: $(WGET) -q -O $@.tmp http://www.gnomedesktop.org/backend.php && mv $@.tmp $@ %.html: %.xhtml $(WK) common.xsl $< /$@ > $@.out && mv $@.out $@ # end of rule