Make events/news/index depend on events/news properly

news-update
David Bartley 16 years ago
parent f10762bf6b
commit 1e6945810e
  1. 2
      Makefile
  2. 2
      common.mk.in
  3. 2
      events/Makefile
  4. 2
      news/Makefile

@ -24,3 +24,5 @@ members.xml:
echo '<memberlist>' >> $@
ceoquery memberlist | sort | awk -F \| '{ name = $$1; program = $$2; userid = $$3; gsub(/&/, "\\&amp;", name); gsub(/&/, "\\&amp;", program); gsub(/"/, "\\&quot;", name); gsub(/"/, "\\&quot;", program); print "<member name=\"" name "\" program=\"" program "\" userid=\"" userid "\" />"; }' >> $@
echo '</memberlist>' >> $@
$(OUTDIR)index.html: events.xml news.xml

@ -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=""||' $@

@ -4,3 +4,5 @@ include ../common.mk
build:
sed -i 's| xmlns=""||' $(OUTDIR)*.html
$(OUTDIR)index.html: ../events.xml

@ -4,3 +4,5 @@ include ../common.mk
build:
sed -i 's| xmlns=""||' $(OUTDIR)*.html
$(OUTDIR)index.html: ../news.xml

Loading…
Cancel
Save