Make events/news/index depend on events/news properly
This commit is contained in:
parent
f10762bf6b
commit
1e6945810e
2
Makefile
2
Makefile
|
@ -24,3 +24,5 @@ members.xml:
|
|||
echo '<memberlist>' >> $@
|
||||
ceoquery memberlist | sort | awk -F \| '{ name = $$1; program = $$2; userid = $$3; gsub(/&/, "\\&", name); gsub(/&/, "\\&", program); gsub(/"/, "\\"", name); gsub(/"/, "\\"", 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…
Reference in New Issue