swtpm/man/man8/Makefile.am
Michal Privoznik a78d02ceec man: Install swtpm_cuse.8 iff WITH_CUSE
Users have option to disable CUSE interface (just pass
--without-cuse argument to the configure script). But the
swtpm_cuse.8 man page is installed regardless of the argument.
This leaves distros having to remove the file before packing
builddir into packages.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2022-12-21 13:54:38 -05:00

51 lines
764 B
Makefile

#
# man/man8/Makefile.am
#
# For the license, see the COPYING file in the root directory.
#
man8_PODS = \
swtpm.pod \
swtpm_bios.pod \
swtpm_cert.pod \
swtpm_ioctl.pod \
swtpm_localca.pod \
swtpm_setup.pod \
swtpm-create-tpmca.pod
man8_generated_MANS = \
swtpm.8 \
swtpm_bios.8 \
swtpm_cert.8 \
swtpm_ioctl.8 \
swtpm_localca.8 \
swtpm_setup.8 \
swtpm-create-tpmca.8
man8_static_MANS = \
swtpm-localca.8
if WITH_CUSE
man8_static_MANS += \
swtpm_cuse.8
endif
man8_MANS = \
$(man8_generated_MANS) \
$(man8_static_MANS)
%.8 : %.pod
@pod2man -r "swtpm" \
-c "" \
-n $(basename $@) \
--section=8 $< > $@
EXTRA_DIST = $(man8_static_MANS) $(man8_PODS)
if !WITH_CUSE
EXTRA_DIST += \
swtpm_cuse.8
endif
CLEANFILES = $(man8_generated_MANS)