mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-27 03:33:39 +08:00
doc: make PDF documentation optional
While building any documentation requires xsltproc, only the PDF documentation requires fop, which is dependency-heavy, and not always available (e.g. it is not included in RHEL). This allows the HTML documentation to be built while skipping the PDFs.
This commit is contained in:
parent
df46458bee
commit
37b416c152
@ -56,6 +56,7 @@ custom_target(
|
||||
)
|
||||
|
||||
|
||||
if prog_fop.found()
|
||||
fop = custom_target(
|
||||
input: xml,
|
||||
output: name + '.fop',
|
||||
@ -85,6 +86,7 @@ custom_target(
|
||||
install_dir: pdfdir,
|
||||
install_tag: 'doc',
|
||||
)
|
||||
endif
|
||||
|
||||
|
||||
subdir('html')
|
||||
|
@ -502,7 +502,7 @@ if enable_docs
|
||||
endif
|
||||
prog_fop = find_program(
|
||||
'fop',
|
||||
required: feature_docs,
|
||||
required: false,
|
||||
disabler: true,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user