2005-12-02 01:16:36 +03:00
## Process this file with automake to produce Makefile.in
2006-02-22 13:54:54 +03:00
SUBDIRS = . examples devhelp
2005-12-02 01:16:36 +03:00
# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR = ../src
2007-04-18 13:58:35 +04:00
PAGES = index.html bugs.html FAQ.html remote.html
2005-12-02 01:16:36 +03:00
man_MANS =
2007-11-15 16:04:28 +03:00
html = \
book1.html \
index.html \
libvirt-conf.html \
libvirt-lib.html \
libvirt-libvirt.html \
libvirt-virterror.html
png = \
left.png \
up.png \
home.png \
right.png
gif = \
Libxml2-Logo-90x34.gif \
architecture.gif \
node.gif \
redhat.gif
dot_html = \
FAQ.html \
architecture.html \
bugs.html \
downloads.html \
errors.html \
format.html \
hvsupport.html \
index.html \
intro.html \
libvir.html \
news.html \
python.html \
remote.html \
uri.html
xml = \
libvirt-api.xml \
libvirt-refs.xml \
testdomfc4.xml \
testdomfv0.xml \
testnetdef.xml \
testnetpriv.xml \
testnode.xml
rng = \
libvirt.rng \
network.rng
EXTRA_DIST = \
libvirt-api.xml libvirt-refs.xml apibuild.py \
2008-01-21 11:08:33 +03:00
site.xsl newapi.xsl news.xsl \
2007-11-15 16:04:28 +03:00
$( dot_html) $( gif) html \
2008-04-09 19:12:13 +04:00
$( xml) $( rng) \
virsh.pod
2007-11-15 16:04:28 +03:00
2006-01-29 13:56:15 +03:00
all : web $( top_builddir ) /NEWS $( man_MANS )
2005-12-02 01:16:36 +03:00
2007-06-21 19:00:17 +04:00
virsh.1 : virsh .pod
2007-11-15 16:04:28 +03:00
pod2man -c "Virtualization Support" $( srcdir) /virsh.pod > $@ -t
mv $@ -t $@
cp $@ $( top_builddir)
2007-06-21 19:00:17 +04:00
2008-01-21 11:08:33 +03:00
api : libvirt -api .xml libvirt -refs .xml $( srcdir ) /html /index .html
2005-12-02 01:16:36 +03:00
web : $( PAGES )
2005-12-07 12:33:00 +03: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 01:16:36 +03:00
2006-02-09 20:45:11 +03:00
$(srcdir)/html/index.html : libvirt -api .xml $( srcdir ) /newapi .xsl
2005-12-07 13:59:26 +03:00
-@( if [ -x $( XSLTPROC) ] ; then \
echo "Rebuilding the HTML pages from the XML API" ; \
2006-02-09 20:45:11 +03:00
$( XSLTPROC) --nonet $( srcdir) /newapi.xsl libvirt-api.xml ; fi )
2005-12-07 13:59:26 +03:00
-@( if [ -x $( XMLLINT) ] ; then \
echo "Validating the resulting XHTML pages" ; \
$( XMLLINT) --nonet --valid --noout html/*.html ; fi ) ;
2005-12-02 01:16:36 +03:00
2007-11-15 16:04:28 +03:00
libvirt-api.xml libvirt-refs.xml : apibuild .py \
$( srcdir) /../include/libvirt/*.h \
$( srcdir) /../src/*.h $( srcdir) /../src/*.c
2005-12-02 01:16:36 +03:00
-( ./apibuild.py)
2006-01-29 13:56:15 +03: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-02 01:16:36 +03:00
clean-local :
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
maintainer-clean-local : clean -local
2006-02-09 20:45:11 +03:00
rm -rf libvirt-api.xml libvirt-refs.xml
2005-12-02 01:16:36 +03:00
rebuild : api all
2008-02-05 22:27:37 +03:00
install-data-local :
2005-12-07 16:45:20 +03:00
$( mkinstalldirs) $( DESTDIR) $( HTML_DIR)
2007-11-15 16:04:28 +03:00
-@INSTALL@ -m 0644 $( srcdir) /libvir.html $( srcdir) /FAQ.html \
$( srcdir) /redhat.gif $( srcdir) /Libxml2-Logo-90x34.gif \
$( DESTDIR) $( HTML_DIR)
2005-12-07 16:45:20 +03:00
$( mkinstalldirs) $( DESTDIR) $( HTML_DIR) /html
2007-11-15 16:04:28 +03:00
for h in $( html) ; do \
$( INSTALL) -m 0644 $( srcdir) /html/$$ h $( DESTDIR) $( HTML_DIR) /html; done
for p in $( png) ; do \
$( INSTALL) -m 0644 $( srcdir) /html/$$ p $( DESTDIR) $( HTML_DIR) /html; done
uninstall-local :
for h in $( html) ; do rm $( DESTDIR) $( HTML_DIR) /html/$$ h; done
for p in $( png) ; do rm $( DESTDIR) $( HTML_DIR) /html/$$ p; done