mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
docs: make xmllint & xsltproc compulsory
We already require libxml to be installed, so it is not unreasonable to require xmllint and xsltproc to be installed too - any platform with the former will have the latter too. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
f802c9de09
commit
94d2d6429d
@ -228,17 +228,14 @@ $(srcdir)/hvsupport.html.in: $(srcdir)/hvsupport.pl $(api_DATA) \
|
|||||||
news.html.in: \
|
news.html.in: \
|
||||||
$(srcdir)/news.xml \
|
$(srcdir)/news.xml \
|
||||||
$(srcdir)/news-html.xsl
|
$(srcdir)/news-html.xsl
|
||||||
$(AM_V_GEN) \
|
$(AM_V_GEN)$(XSLTPROC) --nonet \
|
||||||
if [ -x $(XSLTPROC) ]; then \
|
|
||||||
$(XSLTPROC) --nonet \
|
|
||||||
$(srcdir)/news-html.xsl \
|
$(srcdir)/news-html.xsl \
|
||||||
$(srcdir)/news.xml \
|
$(srcdir)/news.xml \
|
||||||
>$@-tmp \
|
>$@-tmp \
|
||||||
|| { rm -f $@-tmp; exit 1; }; \
|
|| { rm -f $@-tmp; exit 1; }; \
|
||||||
sed 's/ xmlns=""//g' $@-tmp >$@ \
|
sed 's/ xmlns=""//g' $@-tmp >$@ \
|
||||||
|| { rm -f $@-tmp; exit 1; }; \
|
|| { rm -f $@-tmp; exit 1; }; \
|
||||||
rm -f $@-tmp; \
|
rm -f $@-tmp
|
||||||
fi
|
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
$(srcdir)/news.xml \
|
$(srcdir)/news.xml \
|
||||||
$(srcdir)/news.rng \
|
$(srcdir)/news.rng \
|
||||||
@ -251,9 +248,7 @@ MAINTAINERCLEANFILES += \
|
|||||||
|
|
||||||
%.html.tmp: %.html.in site.xsl subsite.xsl page.xsl \
|
%.html.tmp: %.html.in site.xsl subsite.xsl page.xsl \
|
||||||
$(acl_generated)
|
$(acl_generated)
|
||||||
@if [ -x $(XSLTPROC) ] ; then \
|
$(AM_V_GEN)name=`echo $@ | sed -e 's/.tmp//'`; \
|
||||||
echo "Generating $@"; \
|
|
||||||
name=`echo $@ | sed -e 's/.tmp//'`; \
|
|
||||||
dir=`dirname $@` ; \
|
dir=`dirname $@` ; \
|
||||||
if test "$$dir" = "."; \
|
if test "$$dir" = "."; \
|
||||||
then \
|
then \
|
||||||
@ -265,45 +260,36 @@ MAINTAINERCLEANFILES += \
|
|||||||
$(XSLTPROC) --stringparam pagename $$name \
|
$(XSLTPROC) --stringparam pagename $$name \
|
||||||
--stringparam timestamp $(timestamp) --nonet \
|
--stringparam timestamp $(timestamp) --nonet \
|
||||||
$(top_srcdir)/docs/$$style $< > $@ \
|
$(top_srcdir)/docs/$$style $< > $@ \
|
||||||
|| { rm $@ && exit 1; }; fi
|
|| { rm $@ && exit 1; }
|
||||||
|
|
||||||
%.html: %.html.tmp
|
%.html: %.html.tmp
|
||||||
@if test -x $(XMLLINT) ; then \
|
$(AM_V_GEN)$(XMLLINT) --nonet --format $< > $(srcdir)/$@ \
|
||||||
echo "Validating $@" ; \
|
|| { rm $(srcdir)/$@ && exit 1; }
|
||||||
$(XMLLINT) --nonet --format $< > $(srcdir)/$@ \
|
|
||||||
|| { rm $(srcdir)/$@ && exit 1; }; fi
|
|
||||||
|
|
||||||
%.php.tmp: %.php.in site.xsl page.xsl
|
%.php.tmp: %.php.in site.xsl page.xsl
|
||||||
if [ -x $(XSLTPROC) ] ; then \
|
$(AM_V_GEN)$(XSLTPROC) --stringparam pagename $(@:.tmp=) \
|
||||||
echo "Generating $@"; \
|
|
||||||
$(XSLTPROC) --stringparam pagename $(@:.tmp=) \
|
|
||||||
--stringparam timestamp $(timestamp) --nonet \
|
--stringparam timestamp $(timestamp) --nonet \
|
||||||
$(top_srcdir)/docs/site.xsl $< > $@ \
|
$(top_srcdir)/docs/site.xsl $< > $@ \
|
||||||
|| { rm $@ && exit 1; }; fi
|
|| { rm $@ && exit 1; }
|
||||||
|
|
||||||
%.php: %.php.tmp %.php.code.in
|
%.php: %.php.tmp %.php.code.in
|
||||||
@if [ -x $(XSLTPROC) ] ; then \
|
$(AM_V_GEN)sed -e '/<span id="php_placeholder"><\/span>/r '"$(srcdir)/$@.code.in" \
|
||||||
echo "Scripting $@"; \
|
|
||||||
sed -e '/<span id="php_placeholder"><\/span>/r '"$(srcdir)/$@.code.in" \
|
|
||||||
-e /php_placeholder/d < $@.tmp > $(srcdir)/$@ \
|
-e /php_placeholder/d < $@.tmp > $(srcdir)/$@ \
|
||||||
|| { rm $(srcdir)/$@ && exit 1; }; fi
|
|| { rm $(srcdir)/$@ && exit 1; }
|
||||||
|
|
||||||
$(apihtml_generated): html/index.html
|
$(apihtml_generated): html/index.html
|
||||||
|
|
||||||
html/index.html: libvirt-api.xml newapi.xsl page.xsl $(APIBUILD_STAMP)
|
html/index.html: libvirt-api.xml newapi.xsl page.xsl $(APIBUILD_STAMP)
|
||||||
$(AM_V_GEN)if [ -x $(XSLTPROC) ] ; then \
|
$(AM_V_GEN)$(XSLTPROC) --nonet -o $(srcdir)/ \
|
||||||
$(XSLTPROC) --nonet -o $(srcdir)/ \
|
|
||||||
--stringparam builddir '$(abs_top_builddir)' \
|
--stringparam builddir '$(abs_top_builddir)' \
|
||||||
--stringparam timestamp $(timestamp) \
|
--stringparam timestamp $(timestamp) \
|
||||||
$(srcdir)/newapi.xsl $(srcdir)/libvirt-api.xml ; fi && \
|
$(srcdir)/newapi.xsl $(srcdir)/libvirt-api.xml && \
|
||||||
if test -x $(XMLLINT) ; then \
|
$(XMLLINT) --nonet --noout $(srcdir)/html/*.html
|
||||||
$(XMLLINT) --nonet --noout $(srcdir)/html/*.html ; fi
|
|
||||||
|
|
||||||
$(addprefix $(srcdir)/,$(devhelphtml)): $(srcdir)/libvirt-api.xml $(devhelpxsl)
|
$(addprefix $(srcdir)/,$(devhelphtml)): $(srcdir)/libvirt-api.xml $(devhelpxsl)
|
||||||
$(AM_V_GEN)if [ -x $(XSLTPROC) ] ; then \
|
$(AM_V_GEN)$(XSLTPROC) --stringparam timestamp $(timestamp) \
|
||||||
$(XSLTPROC) --stringparam timestamp $(timestamp) \
|
--nonet -o $(srcdir)/devhelp/ \
|
||||||
--nonet -o $(srcdir)/devhelp/ \
|
$(top_srcdir)/docs/devhelp/devhelp.xsl $(srcdir)/libvirt-api.xml
|
||||||
$(top_srcdir)/docs/devhelp/devhelp.xsl $(srcdir)/libvirt-api.xml ; fi
|
|
||||||
|
|
||||||
|
|
||||||
python_generated_files = \
|
python_generated_files = \
|
||||||
|
@ -23,8 +23,16 @@ AC_DEFUN([LIBVIRT_CHECK_EXTERNAL_PROGRAMS], [
|
|||||||
AM_CONDITIONAL([HAVE_RPCGEN], [test "x$ac_cv_path_RPCGEN" != "xno"])
|
AM_CONDITIONAL([HAVE_RPCGEN], [test "x$ac_cv_path_RPCGEN" != "xno"])
|
||||||
|
|
||||||
dnl Miscellaneous external programs.
|
dnl Miscellaneous external programs.
|
||||||
AC_PATH_PROG([XMLLINT], [xmllint], [/usr/bin/xmllint])
|
AC_PATH_PROG([XMLLINT], [xmllint], [])
|
||||||
AC_PATH_PROG([XSLTPROC], [xsltproc], [/usr/bin/xsltproc])
|
if test -z "$XMLLINT"
|
||||||
|
then
|
||||||
|
AC_MSG_ERROR("xmllint is required to build libvirt")
|
||||||
|
fi
|
||||||
|
AC_PATH_PROG([XSLTPROC], [xsltproc], [])
|
||||||
|
if test -z "$XSLTPROC"
|
||||||
|
then
|
||||||
|
AC_MSG_ERROR("xsltproc is required to build libvirt")
|
||||||
|
fi
|
||||||
AC_PATH_PROG([AUGPARSE], [augparse], [/usr/bin/augparse])
|
AC_PATH_PROG([AUGPARSE], [augparse], [/usr/bin/augparse])
|
||||||
AC_PROG_MKDIR_P
|
AC_PROG_MKDIR_P
|
||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
|
Loading…
Reference in New Issue
Block a user