generate the NEWS file from doc/news.html and a stylesheet Daniel
* NEWS doc/Makefile.am doc/news.xsl: generate the NEWS file
from doc/news.html and a stylesheet
Daniel
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 7b37304..cc4c366 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -27,7 +27,7 @@
man_MANS = xmllint.1 xmlcatalog.1
-all: $(PAGES)
+all: $(PAGES) $(top_srcdir)/NEWS
web: $(PAGES) $(APIPAGES)
@@ -35,6 +35,10 @@
-@(if [ -x $(bindir)/xsltproc ] ; then \
$(bindir)/xsltproc --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi );
+$(top_srcdir)/NEWS: $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html
+ -@(if [ -x $(bindir)/xsltproc ] ; then \
+ $(bindir)/xsltproc --html $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html > $(top_srcdir)/NEWS ; fi );
+
$(APIPAGES): libxml2-refs.xml site.xsl api.xsl
-@(if [ -x $(bindir)/xsltproc ] ; then \
$(bindir)/xsltproc --html $(top_srcdir)/doc/api.xsl $(top_srcdir)/doc/xml.html ; fi );