diff --git a/Makefile b/Makefile index 9208dce..70000d4 100644 --- a/Makefile +++ b/Makefile @@ -24,3 +24,5 @@ members.xml: echo '' >> $@ ceoquery memberlist | sort | awk -F \| '{ name = $$1; program = $$2; userid = $$3; gsub(/&/, "\\&", name); gsub(/&/, "\\&", program); gsub(/"/, "\\"", name); gsub(/"/, "\\"", program); print ""; }' >> $@ echo '' >> $@ + +$(OUTDIR)index.html: events.xml news.xml diff --git a/common.mk.in b/common.mk.in index 7aa536f..8d16044 100644 --- a/common.mk.in +++ b/common.mk.in @@ -27,7 +27,7 @@ XSLTARGS=g_date=`date -I` g_time=`date +%H:%M:%S` g_outdir="$(OUTDIR)" \ g_datetime="`date --rfc-3339=seconds`" g_pwd="$$(pwd)" g_root="$(ROOT)" CLASSPATH = /users/www/saxon8/saxon8.jar -$(OUTDIR)%.html: %.xml $(ROOT)/csc.dtd $(ROOT)/xsl/*.xsl $(ROOT)/events.xml $(ROOT)/news.xml directory.xml +$(OUTDIR)%.html: %.xml $(ROOT)/csc.dtd $(ROOT)/xsl/*.xsl directory.xml java -classpath $(CLASSPATH) net.sf.saxon.Transform -o $@ $< $(ROOT)/xsl/html.xsl $(XSLTARGS) sed -i 's| xmlns=""||' $@ diff --git a/events/Makefile b/events/Makefile index cce7021..79f1c49 100644 --- a/events/Makefile +++ b/events/Makefile @@ -4,3 +4,5 @@ include ../common.mk build: sed -i 's| xmlns=""||' $(OUTDIR)*.html + +$(OUTDIR)index.html: ../events.xml diff --git a/news/Makefile b/news/Makefile index 7832242..4ee1e4d 100644 --- a/news/Makefile +++ b/news/Makefile @@ -4,3 +4,5 @@ include ../common.mk build: sed -i 's| xmlns=""||' $(OUTDIR)*.html + +$(OUTDIR)index.html: ../news.xml