Revert "ci: skip "lib/test-fork-safe-execvpe.sh" on Alpine Linux"
[libnbd.git] / docs / Makefile.am
blob379827040631e2fa108ab98c2341a4c805fc5eb5
1 # nbd client library in userspace
2 # Copyright Red Hat
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 include $(top_srcdir)/subdir-rules.mk
20 api_built=
22 # Our use of sinclude to bypass Automake is intentional; this file won't
23 # exist in a fresh git checkout until after the generator has run, but
24 # should already be present in any released tarball.  But, since automake
25 # can't see into this file, it did not hoist the resulting prerequisites
26 # prior to its 'all-am: Makefile $(MANS)' rule, which gets parsed before
27 # $(MANS) has grown in size, so we have to add a second all-am dependency.
28 sinclude $(srcdir)/Makefile.inc
29 all-am: $(api_built:%=%.3)
31 generator_built = \
32         Makefile.inc \
33         api-links.pod \
34         api-flag-links.pod \
35         $(api_built:%=%.pod) \
36         $(NULL)
38 EXTRA_DIST = \
39         $(generator_built) \
40         libnbd.pod \
41         libnbd-release-notes-1.2.pod \
42         libnbd-release-notes-1.4.pod \
43         libnbd-release-notes-1.6.pod \
44         libnbd-release-notes-1.8.pod \
45         libnbd-release-notes-1.10.pod \
46         libnbd-release-notes-1.12.pod \
47         libnbd-release-notes-1.14.pod \
48         libnbd-security.pod \
49         nbd_create.pod \
50         nbd_close.3 \
51         nbd_get_error.3 \
52         nbd_get_errno.3 \
53         $(NULL)
55 if HAVE_POD
57 man_MANS = \
58         libnbd.3 \
59         libnbd-release-notes-1.2.1 \
60         libnbd-release-notes-1.4.1 \
61         libnbd-release-notes-1.6.1 \
62         libnbd-release-notes-1.8.1 \
63         libnbd-release-notes-1.10.1 \
64         libnbd-release-notes-1.12.1 \
65         libnbd-release-notes-1.14.1 \
66         libnbd-security.3 \
67         nbd_create.3 \
68         nbd_close.3 \
69         nbd_get_error.3 \
70         nbd_get_errno.3 \
71         $(api_built:%=%.3) \
72         $(NULL)
73 CLEANFILES += \
74         libnbd.3 \
75         libnbd-release-notes-1.2.1 \
76         libnbd-release-notes-1.4.1 \
77         libnbd-release-notes-1.6.1 \
78         libnbd-release-notes-1.8.1 \
79         libnbd-release-notes-1.10.1 \
80         libnbd-release-notes-1.12.1 \
81         libnbd-release-notes-1.14.1 \
82         libnbd-security.3 \
83         nbd_create.3 \
84         $(api_built:%=%.3) \
85         $(NULL)
87 nbd_%.3: nbd_%.pod $(top_builddir)/podwrapper.pl
88         $(PODWRAPPER) --section=3 --man $@ \
89             --html $(top_builddir)/html/$@.html \
90             $<
92 libnbd.3: libnbd.pod $(top_builddir)/podwrapper.pl \
93                 api-links.pod api-flag-links.pod
94         $(PODWRAPPER) --section=3 --man $@ \
95             --insert $(srcdir)/api-links.pod:__API_LINKS__ \
96             --insert $(srcdir)/api-flag-links.pod:__API_FLAG_LINKS__ \
97             --html $(top_builddir)/html/$@.html \
98             $<
100 libnbd-release-notes-%.1: libnbd-release-notes-%.pod
101         $(PODWRAPPER) --section=1 --man $@ \
102             --html $(top_builddir)/html/$@.html \
103             $<
105 libnbd-security.3: libnbd-security.pod
106         $(PODWRAPPER) --section=3 --man $@ \
107             --html $(top_builddir)/html/$@.html \
108             $<
110 endif HAVE_POD