2005-12-02 06:16:36 +08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
SUBDIRS=
|
|
|
|
|
|
|
|
# The directory containing the source code (if it contains documentation).
|
|
|
|
DOC_SOURCE_DIR=../src
|
|
|
|
|
2005-12-07 18:59:26 +08:00
|
|
|
PAGES= index.html bugs.html FAQ.html
|
2005-12-02 06:16:36 +08:00
|
|
|
APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \
|
|
|
|
APIsymbols.html APIchunk0.html
|
|
|
|
EXTRA_DIST= \
|
2005-12-07 18:59:26 +08:00
|
|
|
libvir-api.xml libxen-refs.xml apibuild.py \
|
|
|
|
*.xsl *.html *.gif html/*.html html/*.png
|
2005-12-02 06:16:36 +08:00
|
|
|
|
|
|
|
|
|
|
|
man_MANS=
|
|
|
|
|
|
|
|
all: web $(man_MANS)
|
|
|
|
|
2005-12-07 18:59:26 +08:00
|
|
|
api: libvir-api.xml libvir-refs.xml $(APIPAGES) $(srcdir)/html/index.html
|
2005-12-02 06:16:36 +08:00
|
|
|
|
|
|
|
web: $(PAGES)
|
|
|
|
|
2005-12-07 17:33:00 +08:00
|
|
|
$(PAGES): libvir.html site.xsl
|
|
|
|
-@(if [ -x $(XSLTPROC) ] ; then \
|
|
|
|
echo "Rebuilding the HTML Web pages from libvir.html" ; \
|
|
|
|
$(XSLTPROC) --nonet --html $(top_srcdir)/docs/site.xsl $(top_srcdir)/docs/libvir.html > index.html ; fi );
|
|
|
|
-@(if [ -x $(XMLLINT) ] ; then \
|
|
|
|
echo "Validating the HTML Web pages" ; \
|
|
|
|
$(XMLLINT) --nonet --valid --noout $(PAGES) ; fi );
|
2005-12-02 06:16:36 +08:00
|
|
|
|
|
|
|
|
2005-12-07 18:59:26 +08:00
|
|
|
$(APIPAGES): libvir-api.xml libvir-refs.xml $(top_srcdir)/docs/site.xsl $(top_srcdir)/docs/api.xsl
|
|
|
|
-@(if [ -x $(XSLTPROC) ] ; then \
|
|
|
|
echo "Rebuilding the HTML API pages from libvir-refs.xml" ; \
|
|
|
|
$(XSLTPROC) --nonet --html $(top_srcdir)/docs/api.xsl \
|
|
|
|
$(top_srcdir)/docs/libvir.html ; fi );
|
|
|
|
-@(if [ -x $(XMLLINT) ] ; then \
|
|
|
|
echo "Validating the HTML API pages" ; \
|
|
|
|
$(XMLLINT) --nonet --valid --noout API*.html ; fi );
|
|
|
|
|
|
|
|
$(srcdir)/html/index.html: libvir-api.xml $(srcdir)/newapi.xsl
|
|
|
|
-@(if [ -x $(XSLTPROC) ] ; then \
|
|
|
|
echo "Rebuilding the HTML pages from the XML API" ; \
|
|
|
|
$(XSLTPROC) --nonet $(srcdir)/newapi.xsl libvir-api.xml ; fi )
|
|
|
|
-@(if [ -x $(XMLLINT) ] ; then \
|
|
|
|
echo "Validating the resulting XHTML pages" ; \
|
|
|
|
$(XMLLINT) --nonet --valid --noout html/*.html ; fi );
|
2005-12-02 06:16:36 +08:00
|
|
|
|
2005-12-05 19:16:07 +08:00
|
|
|
libvir-api.xml libvir-refs.xml: apibuild.py ../include/*.h ../src/*.h ../src/*.c
|
2005-12-02 06:16:36 +08:00
|
|
|
-(./apibuild.py)
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
|
|
|
|
|
|
|
|
maintainer-clean-local: clean-local
|
2005-12-05 19:16:07 +08:00
|
|
|
rm -rf libvir-api.xml libvir-refs.xml
|
2005-12-02 06:16:36 +08:00
|
|
|
|
|
|
|
rebuild: api all
|
|
|
|
|
2005-12-07 21:45:20 +08:00
|
|
|
install-data-local:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
|
|
|
|
-@INSTALL@ -m 0644 $(srcdir)/libvir.html $(srcdir)/FAQ.html $(srcdir)/redhat.gif $(srcdir)/Libxml2-Logo-90x34.gif $(DESTDIR)$(HTML_DIR)
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/html
|
|
|
|
-@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html
|
|
|
|
-@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html
|
2005-12-02 06:16:36 +08:00
|
|
|
|