Update Red Hat Copyright Notices
[nbdkit.git] / docs / Makefile.am
bloba8f3717c404f020bcc20d1ab7eff6d0f723ef07c
1 # nbdkit
2 # Copyright Red Hat
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
11 # * Redistributions in binary form must reproduce the above copyright
12 # notice, this list of conditions and the following disclaimer in the
13 # documentation and/or other materials provided with the distribution.
15 # * Neither the name of Red Hat nor the names of its contributors may be
16 # used to endorse or promote products derived from this software without
17 # specific prior written permission.
19 # THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND
20 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22 # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR
23 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
26 # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27 # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
29 # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 # SUCH DAMAGE.
32 include $(top_srcdir)/common-rules.mk
34 EXTRA_DIST = \
35         make-links.sh \
36         nbdkit.pod \
37         nbdkit-captive.pod \
38         nbdkit-client.pod \
39         nbdkit-loop.pod \
40         nbdkit-probing.pod \
41         nbdkit-protocol.pod \
42         nbdkit-release-notes-1.4.pod \
43         nbdkit-release-notes-1.6.pod \
44         nbdkit-release-notes-1.8.pod \
45         nbdkit-release-notes-1.10.pod \
46         nbdkit-release-notes-1.12.pod \
47         nbdkit-release-notes-1.14.pod \
48         nbdkit-release-notes-1.16.pod \
49         nbdkit-release-notes-1.18.pod \
50         nbdkit-release-notes-1.20.pod \
51         nbdkit-release-notes-1.22.pod \
52         nbdkit-release-notes-1.24.pod \
53         nbdkit-release-notes-1.26.pod \
54         nbdkit-release-notes-1.28.pod \
55         nbdkit-release-notes-1.30.pod \
56         nbdkit-release-notes-1.32.pod \
57         nbdkit-security.pod \
58         nbdkit-service.pod \
59         nbdkit-tls.pod \
60         nbdkit-plugin.pod \
61         nbdkit-filter.pod \
62         synopsis.txt \
63         $(NULL)
65 if HAVE_POD
67 man_MANS = \
68         nbdkit.1 \
69         nbdkit-captive.1 \
70         nbdkit-client.1 \
71         nbdkit-loop.1 \
72         nbdkit-probing.1 \
73         nbdkit-protocol.1 \
74         nbdkit-release-notes-1.4.1 \
75         nbdkit-release-notes-1.6.1 \
76         nbdkit-release-notes-1.8.1 \
77         nbdkit-release-notes-1.10.1 \
78         nbdkit-release-notes-1.12.1 \
79         nbdkit-release-notes-1.14.1 \
80         nbdkit-release-notes-1.16.1 \
81         nbdkit-release-notes-1.18.1 \
82         nbdkit-release-notes-1.20.1 \
83         nbdkit-release-notes-1.22.1 \
84         nbdkit-release-notes-1.24.1 \
85         nbdkit-release-notes-1.26.1 \
86         nbdkit-release-notes-1.28.1 \
87         nbdkit-release-notes-1.30.1 \
88         nbdkit-release-notes-1.32.1 \
89         nbdkit-security.1 \
90         nbdkit-service.1 \
91         nbdkit-tls.1 \
92         nbdkit-plugin.3 \
93         nbdkit-filter.3 \
94         $(NULL)
95 CLEANFILES += $(man_MANS)
97 nbdkit.1: nbdkit.pod plugin-links.pod lang-plugin-links.pod filter-links.pod \
98                 synopsis.txt $(top_builddir)/podwrapper.pl
99         $(PODWRAPPER) --section=1 --man $@ \
100             --html $(top_builddir)/html/$@.html \
101             --insert plugin-links.pod:__PLUGIN_LINKS__ \
102             --insert lang-plugin-links.pod:__LANG_PLUGIN_LINKS__ \
103             --insert filter-links.pod:__FILTER_LINKS__ \
104             --verbatim $(srcdir)/synopsis.txt:__SYNOPSIS__ \
105             $<
107 nbdkit-captive.1: nbdkit-captive.pod $(top_builddir)/podwrapper.pl
108         $(PODWRAPPER) --section=1 --man $@ \
109             --html $(top_builddir)/html/$@.html \
110             $<
112 nbdkit-client.1: nbdkit-client.pod $(top_builddir)/podwrapper.pl
113         $(PODWRAPPER) --section=1 --man $@ \
114             --html $(top_builddir)/html/$@.html \
115             $<
117 nbdkit-loop.1: nbdkit-loop.pod $(top_builddir)/podwrapper.pl
118         $(PODWRAPPER) --section=1 --man $@ \
119             --html $(top_builddir)/html/$@.html \
120             $<
122 nbdkit-probing.1: nbdkit-probing.pod $(top_builddir)/podwrapper.pl
123         $(PODWRAPPER) --section=1 --man $@ \
124             --html $(top_builddir)/html/$@.html \
125             $<
127 nbdkit-protocol.1: nbdkit-protocol.pod $(top_builddir)/podwrapper.pl
128         $(PODWRAPPER) --section=1 --man $@ \
129             --html $(top_builddir)/html/$@.html \
130             $<
132 nbdkit-release-notes-%.1: nbdkit-release-notes-%.pod \
133                 $(top_builddir)/podwrapper.pl
134         $(PODWRAPPER) --section=1 --man $@ \
135             --html $(top_builddir)/html/$@.html \
136             $<
138 nbdkit-security.1: nbdkit-security.pod $(top_builddir)/podwrapper.pl
139         $(PODWRAPPER) --section=1 --man $@ \
140             --html $(top_builddir)/html/$@.html \
141             $<
143 nbdkit-service.1: nbdkit-service.pod $(top_builddir)/podwrapper.pl
144         $(PODWRAPPER) --section=1 --man $@ \
145             --html $(top_builddir)/html/$@.html \
146             $<
148 nbdkit-tls.1: nbdkit-tls.pod $(top_builddir)/podwrapper.pl
149         $(PODWRAPPER) --section=1 --man $@ \
150             --html $(top_builddir)/html/$@.html \
151             $<
153 nbdkit-plugin.3: nbdkit-plugin.pod plugin-links.pod lang-plugin-links.pod \
154                 $(top_builddir)/podwrapper.pl
155         $(PODWRAPPER) --section=3 --man $@ \
156             --html $(top_builddir)/html/$@.html \
157             --insert plugin-links.pod:__PLUGIN_LINKS__ \
158             --insert lang-plugin-links.pod:__LANG_PLUGIN_LINKS__ \
159             $<
161 nbdkit-filter.3: nbdkit-filter.pod filter-links.pod \
162                 $(top_builddir)/podwrapper.pl
163         $(PODWRAPPER) --section=3 --man $@ \
164             --html $(top_builddir)/html/$@.html \
165             --insert filter-links.pod:__FILTER_LINKS__ \
166             $<
168 endif HAVE_POD
170 # All plugins.
171 plugin-links.pod: $(top_srcdir)/configure.ac
172         rm -f $@ $@-t
173         $(srcdir)/make-links.sh plugin 1 $(non_lang_plugins) > $@-t
174         echo \; >> $@-t
175         $(srcdir)/make-links.sh plugin 3 $(lang_plugins) >> $@-t
176         mv $@-t $@
178 # Only language plugins (in section 3).
179 lang-plugin-links.pod: $(top_srcdir)/configure.ac
180         rm -f $@ $@-t
181         $(srcdir)/make-links.sh plugin 3 $(lang_plugins) >> $@-t
182         mv $@-t $@
184 # All filters.
185 filter-links.pod: $(top_srcdir)/configure.ac
186         rm -f $@ $@-t
187         $(srcdir)/make-links.sh filter 1 $(filters) > $@-t
188         mv $@-t $@
190 DISTCLEANFILES = plugin-links.pod lang-plugin-links.pod filter-links.pod