2005-12-01 22:16:36 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
2006-02-22 10:54:54 +00:00
|
|
|
SUBDIRS= . examples devhelp
|
2005-12-01 22:16:36 +00:00
|
|
|
|
|
|
|
# The directory containing the source code (if it contains documentation).
|
|
|
|
DOC_SOURCE_DIR=../src
|
|
|
|
|
2005-12-07 10:59:26 +00:00
|
|
|
PAGES= index.html bugs.html FAQ.html
|
2005-12-01 22:16:36 +00:00
|
|
|
APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \
|
|
|
|
APIsymbols.html APIchunk0.html
|
|
|
|
EXTRA_DIST= \
|
2006-02-09 17:45:11 +00:00
|
|
|
libvirt-api.xml libvirt-refs.xml apibuild.py \
|
2006-09-12 01:21:15 +00:00
|
|
|
*.xsl *.html *.gif html/*.html html/*.png \
|
2007-01-22 15:31:00 +00:00
|
|
|
test*.xml libvirt.rng
|
2005-12-01 22:16:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
man_MANS=
|
|
|
|
|
2006-01-29 10:56:15 +00:00
|
|
|
all: web $(top_builddir)/NEWS $(man_MANS)
|
2005-12-01 22:16:36 +00:00
|
|
|
|
2006-02-09 17:45:11 +00:00
|
|
|
api: libvirt-api.xml libvirt-refs.xml $(APIPAGES) $(srcdir)/html/index.html
|
2005-12-01 22:16:36 +00:00
|
|
|
|
|
|
|
web: $(PAGES)
|
|
|
|
|
2005-12-07 09:33:00 +00: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-01 22:16:36 +00:00
|
|
|
|
|
|
|
|
2006-02-09 17:45:11 +00:00
|
|
|
$(APIPAGES): libvirt-api.xml libvirt-refs.xml $(top_srcdir)/docs/site.xsl $(top_srcdir)/docs/api.xsl
|
2005-12-07 10:59:26 +00:00
|
|
|
-@(if [ -x $(XSLTPROC) ] ; then \
|
2006-02-09 17:45:11 +00:00
|
|
|
echo "Rebuilding the HTML API pages from libvirt-refs.xml" ; \
|
2005-12-07 10:59:26 +00:00
|
|
|
$(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 );
|
|
|
|
|
2006-02-09 17:45:11 +00:00
|
|
|
$(srcdir)/html/index.html: libvirt-api.xml $(srcdir)/newapi.xsl
|
2005-12-07 10:59:26 +00:00
|
|
|
-@(if [ -x $(XSLTPROC) ] ; then \
|
|
|
|
echo "Rebuilding the HTML pages from the XML API" ; \
|
2006-02-09 17:45:11 +00:00
|
|
|
$(XSLTPROC) --nonet $(srcdir)/newapi.xsl libvirt-api.xml ; fi )
|
2005-12-07 10:59:26 +00:00
|
|
|
-@(if [ -x $(XMLLINT) ] ; then \
|
|
|
|
echo "Validating the resulting XHTML pages" ; \
|
|
|
|
$(XMLLINT) --nonet --valid --noout html/*.html ; fi );
|
2005-12-01 22:16:36 +00:00
|
|
|
|
2006-06-26 15:02:18 +00:00
|
|
|
libvirt-api.xml libvirt-refs.xml: apibuild.py ../include/libvirt/*.h ../src/*.h ../src/*.c
|
2005-12-01 22:16:36 +00:00
|
|
|
-(./apibuild.py)
|
|
|
|
|
2006-01-29 10:56:15 +00:00
|
|
|
$(top_builddir)/NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html
|
|
|
|
-@(if [ -x $(XSLTPROC) ] ; then \
|
|
|
|
$(XSLTPROC) --nonet $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html > $(top_builddir)/NEWS ; fi );
|
|
|
|
|
2005-12-01 22:16:36 +00:00
|
|
|
clean-local:
|
|
|
|
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
|
|
|
|
|
|
|
|
maintainer-clean-local: clean-local
|
2006-02-09 17:45:11 +00:00
|
|
|
rm -rf libvirt-api.xml libvirt-refs.xml
|
2005-12-01 22:16:36 +00:00
|
|
|
|
|
|
|
rebuild: api all
|
|
|
|
|
2005-12-07 13:45:20 +00: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-01 22:16:36 +00:00
|
|
|
|