section = main download faq screenshots scratches turntable aseqjoy docs all: index.html aseqjoy.html download.html faq.html scratches.html docs.html turntable.html screenshots.html XMLFILES=$(wildcard *.xml) $(wildcard *.xsl) pretty: list='$(XMLFILES)'; for file in $$list; do tidy -i -w 80 -xml < $$file > tmp; if [ $$? -eq 0 ]; then mv tmp $$file; else echo error: $$?; fi; done clean: Makefile rm -rf *.html *.tmp %.html: %.xml tX.xsl tX.dtd sedscript linkdb.xml xsltproc tX.xsl $*.xml > $*.tmp && sed -f sedscript < $*.tmp | (echo ''; cat) > $*.html ; rm $*.tmp # java org.apache.xalan.xslt.Process -in $*.xml -xsl tX.xsl -out $*.tmp && sed -f sedscript < $*.tmp | (echo ''; cat) > $*.html ; rm $*.tmp dist: all (mkdir tX_website; cp Makefile createpreview sedscript script.js *.xml *.html tX.dtd tX.xsl tX_website; tar cjf tX_website.tar.bz2 tX_website; rm -rf tX_website) install: all cp -f script.js *.html ~/.public_html/tX