mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
build: Only use pod2man if it exists
This fixes the build in gnome-ostree, where we don't have pod2man to generate the manpages.
This commit is contained in:
committed by
Bastien Nocera
parent
8266f354cc
commit
78623147bc
@ -50,6 +50,8 @@ AC_MSG_RESULT([$has_pam])
|
||||
|
||||
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
|
||||
AC_CHECK_PROG([XSLTPROC], [xsltproc], [xsltproc])
|
||||
AC_CHECK_PROG([POD2MAN], [pod2man], [xsltproc])
|
||||
AM_CONDITIONAL(BUILD_MAN, test "$POD2MAN" != "x")
|
||||
|
||||
GTK_DOC_CHECK([1.3])
|
||||
|
||||
|
||||
@ -18,9 +18,13 @@ polkit_DATA = $(polkit_in_files:.policy.in=.policy)
|
||||
confdir = $(sysconfdir)/
|
||||
conf_DATA = fprintd.conf
|
||||
|
||||
man_MANS = fprintd.1
|
||||
man_MANS =
|
||||
|
||||
if BUILD_MAN
|
||||
man_MANS += fprintd.1
|
||||
fprintd.1: fprintd.pod
|
||||
$(AM_V_GEN) pod2man -c "" -s 1 -q none -n fprintd -r freedesktop $< > $@
|
||||
endif
|
||||
|
||||
EXTRA_DIST = $(dbus_services_in_files) $(dbus_conf_DATA) $(polkit_in_files) $(conf_DATA) fprintd.pod
|
||||
CLEANFILES = $(polkit_DATA) $(dbus_services_DATA) fprintd.1
|
||||
|
||||
Reference in New Issue
Block a user