mirror of
https://gitlab.com/bzip2/bzip2.git
synced 2025-04-19 21:02:16 +03:00
`egrep` and `fgrep` have been deprecated in GNU grep since 2007, and in current post 3.7 Git they have been made to emit obsolescence warnings: https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1
18 lines
719 B
Meson
18 lines
719 B
Meson
build_docs = get_option('docs')
|
|
docs = find_program('xsltproc', required : build_docs).found()
|
|
docs = docs and find_program('perl', required : build_docs).found()
|
|
docs = docs and find_program('xmllint', required : build_docs).found()
|
|
docs = docs and find_program('grep', required : build_docs).found()
|
|
docs = docs and find_program('pdfxmltex', required : build_docs).found()
|
|
docs = docs and find_program('pdftops', required : build_docs).found()
|
|
prog_sh = find_program('sh', required : build_docs)
|
|
if docs and prog_sh.found()
|
|
foreach t : ['pdf', 'ps', 'html']
|
|
custom_target(
|
|
'manual.' + t,
|
|
command : [prog_sh, 'xmlproc.sh', '-' + t, '@OUTPUT@'],
|
|
output : 'manual.' + t,
|
|
)
|
|
endforeach
|
|
endif
|