1 # nbd client library in userspace
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
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)
35 $(api_built:%=%.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 \
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 \
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 \
87 nbd_%.3: nbd_%.pod $(top_builddir)/podwrapper.pl
88 $(PODWRAPPER) --section=3 --man $@ \
89 --html $(top_builddir)/html/$@.html \
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 \
100 libnbd-release-notes-%.1: libnbd-release-notes-%.pod
101 $(PODWRAPPER) --section=1 --man $@ \
102 --html $(top_builddir)/html/$@.html \
105 libnbd-security.3: libnbd-security.pod
106 $(PODWRAPPER) --section=3 --man $@ \
107 --html $(top_builddir)/html/$@.html \