~nova-coresec/ubuntu/maverick/libvirt/nova-ppa

« back to all changes in this revision

Viewing changes to docs/Makefile.am

Tags: 0.4.4-3
* upload to unstable
* [96c6727] add /var/cache/libvirt needed by qemuDriver for temporary
  storage
* [794f95c] bump standards version to 3.8.0
* [05184af] add README.source

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# The directory containing the source code (if it contains documentation).
5
5
DOC_SOURCE_DIR=../src
6
6
 
7
 
PAGES= index.html bugs.html FAQ.html
8
 
APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \
9
 
    APIsymbols.html APIchunk0.html
10
 
EXTRA_DIST=                                                     \
11
 
           libvirt-api.xml libvirt-refs.xml apibuild.py         \
12
 
           *.xsl *.html *.gif html/*.html html/*.png \
13
 
           test*.xml
14
 
 
15
 
 
16
7
man_MANS=
17
8
 
 
9
apihtml =                       \
 
10
  html/index.html               \
 
11
  html/libvirt-libvirt.html     \
 
12
  html/libvirt-virterror.html
 
13
 
 
14
apipng =        \
 
15
  html/left.png \
 
16
  html/up.png   \
 
17
  html/home.png \
 
18
  html/right.png
 
19
 
 
20
png = \
 
21
  16favicon.png \
 
22
  32favicon.png \
 
23
  footer_corner.png \
 
24
  footer_pattern.png \
 
25
  libvirHeader.png \
 
26
  libvirLogo.png \
 
27
  libvirt-header-bg.png \
 
28
  libvirt-header-logo.png \
 
29
  libvirtLogo.png \
 
30
  libvirt-net-logical.png \
 
31
  libvirt-net-physical.png \
 
32
  madeWith.png \
 
33
  windows-cygwin-1.png \
 
34
  windows-cygwin-2.png \
 
35
  windows-cygwin-3.png \
 
36
  et.png
 
37
 
 
38
gif = \
 
39
  Libxml2-Logo-90x34.gif \
 
40
  architecture.gif \
 
41
  node.gif
 
42
 
 
43
dot_html_in = $(wildcard *.html.in)
 
44
dot_html = $(dot_html_in:%.html.in=%.html)
 
45
 
 
46
xml = \
 
47
  libvirt-api.xml \
 
48
  libvirt-refs.xml \
 
49
  testdomfc4.xml \
 
50
  testdomfv0.xml \
 
51
  testnetdef.xml \
 
52
  testnetpriv.xml \
 
53
  testnode.xml
 
54
 
 
55
rng = \
 
56
  libvirt.rng \
 
57
  network.rng
 
58
 
 
59
fig = \
 
60
  libvirt-net-logical.fig \
 
61
  libvirt-net-physical.fig
 
62
 
 
63
EXTRA_DIST=                                     \
 
64
  libvirt-api.xml libvirt-refs.xml apibuild.py  \
 
65
  site.xsl newapi.xsl news.xsl page.xsl ChangeLog.xsl   \
 
66
  $(dot_html) $(dot_html_in) $(gif) $(apihtml) $(apipng) \
 
67
  $(xml) $(rng) $(fig) $(png) \
 
68
  virsh.pod ChangeLog.awk
 
69
 
18
70
all: web $(top_builddir)/NEWS $(man_MANS)
19
71
 
20
 
api: libvirt-api.xml libvirt-refs.xml $(APIPAGES) $(srcdir)/html/index.html
21
 
 
22
 
web: $(PAGES)
23
 
 
24
 
$(PAGES): libvir.html site.xsl
25
 
        -@(if [ -x $(XSLTPROC) ] ; then \
26
 
          echo "Rebuilding the HTML Web pages from libvir.html" ; \
27
 
          $(XSLTPROC) --nonet --html $(top_srcdir)/docs/site.xsl $(top_srcdir)/docs/libvir.html > index.html ; fi );
28
 
        -@(if [ -x $(XMLLINT) ] ; then \
29
 
          echo "Validating the HTML Web pages" ; \
30
 
          $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi );
31
 
 
32
 
 
33
 
$(APIPAGES): libvirt-api.xml libvirt-refs.xml $(top_srcdir)/docs/site.xsl $(top_srcdir)/docs/api.xsl
34
 
        -@(if [ -x $(XSLTPROC) ] ; then \
35
 
          echo "Rebuilding the HTML API pages from libvirt-refs.xml" ; \
36
 
          $(XSLTPROC) --nonet --html $(top_srcdir)/docs/api.xsl \
37
 
                             $(top_srcdir)/docs/libvir.html ; fi );
38
 
        -@(if [ -x $(XMLLINT) ] ; then \
39
 
          echo "Validating the HTML API pages" ; \
40
 
          $(XMLLINT) --nonet --valid --noout API*.html ; fi );
41
 
 
42
 
$(srcdir)/html/index.html: libvirt-api.xml $(srcdir)/newapi.xsl
 
72
virsh.1: virsh.pod
 
73
        pod2man -c "Virtualization Support" $(srcdir)/virsh.pod > $@-t
 
74
        mv $@-t $@
 
75
        cp $@ $(top_builddir)
 
76
 
 
77
api: libvirt-api.xml libvirt-refs.xml $(srcdir)/html/index.html
 
78
 
 
79
web: $(dot_html)
 
80
 
 
81
ChangeLog.xml: ../ChangeLog ChangeLog.awk
 
82
        awk -f ChangeLog.awk < $< > $@
 
83
 
 
84
ChangeLog.html.in: ChangeLog.xml ChangeLog.xsl
 
85
        @(if [ -x $(XSLTPROC) ] ; then \
 
86
          echo "Generating $@"; \
 
87
          name=`echo $@ | sed -e 's/.tmp//'`; \
 
88
          $(XSLTPROC) --nonet $(top_srcdir)/docs/ChangeLog.xsl $< > $@ || (rm $@ && exit 1) ; fi )
 
89
 
 
90
%.html.tmp: %.html.in site.xsl page.xsl sitemap.html.in
 
91
        @(if [ -x $(XSLTPROC) ] ; then \
 
92
          echo "Generating $@"; \
 
93
          name=`echo $@ | sed -e 's/.tmp//'`; \
 
94
          $(XSLTPROC) --stringparam pagename $$name --nonet --html $(top_srcdir)/docs/site.xsl $< > $@ || (rm $@ && exit 1) ; fi )
 
95
 
 
96
%.html: %.html.tmp
 
97
        @(if [ -x $(XMLLINT) ] ; then \
 
98
          echo "Validating $@" ; \
 
99
          $(XMLLINT) --nonet --format --valid $< > $@ || : ; fi );
 
100
 
 
101
 
 
102
$(srcdir)/html/index.html: libvirt-api.xml newapi.xsl page.xsl sitemap.html.in
43
103
        -@(if [ -x $(XSLTPROC) ] ; then \
44
104
          echo "Rebuilding the HTML pages from the XML API" ; \
45
105
          $(XSLTPROC) --nonet $(srcdir)/newapi.xsl libvirt-api.xml ; fi )
47
107
          echo "Validating the resulting XHTML pages" ; \
48
108
          $(XMLLINT) --nonet --valid --noout html/*.html ; fi );
49
109
 
50
 
libvirt-api.xml libvirt-refs.xml: apibuild.py ../include/libvirt/*.h ../src/*.h ../src/*.c
 
110
libvirt-api.xml libvirt-refs.xml: apibuild.py \
 
111
                $(srcdir)/../include/libvirt/*.h \
 
112
                $(srcdir)/../src/*.h $(srcdir)/../src/*.c
51
113
        -(./apibuild.py)
52
114
 
53
 
$(top_builddir)/NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html
 
115
$(top_builddir)/NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html.in
54
116
        -@(if [ -x $(XSLTPROC) ] ; then \
55
 
          $(XSLTPROC) --nonet $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html > $(top_builddir)/NEWS ; fi );
 
117
          $(XSLTPROC) --nonet $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html.in > $(top_builddir)/NEWS ; fi );
56
118
 
57
119
clean-local:
58
120
        rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
62
124
 
63
125
rebuild: api all
64
126
 
65
 
install-data-local: 
 
127
install-data-local:
66
128
        $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
67
 
        -@INSTALL@ -m 0644 $(srcdir)/libvir.html $(srcdir)/FAQ.html $(srcdir)/redhat.gif $(srcdir)/Libxml2-Logo-90x34.gif $(DESTDIR)$(HTML_DIR)
 
129
        -@INSTALL@ -m 0644 $(srcdir)/libvir.html $(srcdir)/FAQ.html \
 
130
            $(srcdir)/redhat.gif $(srcdir)/Libxml2-Logo-90x34.gif \
 
131
          $(DESTDIR)$(HTML_DIR)
68
132
        $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/html
69
 
        -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html
70
 
        -@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html
 
133
        for h in $(apihtml); do \
 
134
          $(INSTALL) -m 0644 $(srcdir)/$$h $(DESTDIR)$(HTML_DIR)/html; done
 
135
        for p in $(apipng); do \
 
136
          $(INSTALL) -m 0644 $(srcdir)/$$p $(DESTDIR)$(HTML_DIR)/html; done
71
137
 
 
138
uninstall-local:
 
139
        for h in $(apihtml); do rm $(DESTDIR)$(HTML_DIR)/$$h; done
 
140
        for p in $(apipng); do rm $(DESTDIR)$(HTML_DIR)/$$p; done