mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Merge "make man pages optional" by epsilon-0
This commit is contained in:
commit
9d64c170f1
2 changed files with 22 additions and 19 deletions
36
meson.build
36
meson.build
|
|
@ -247,25 +247,27 @@ executable(
|
|||
c_args: fuzz_compile_args,
|
||||
)
|
||||
|
||||
pandoc = find_program('pandoc')
|
||||
mandir1 = join_paths(get_option('mandir'), 'man1')
|
||||
mandir5 = join_paths(get_option('mandir'), 'man5')
|
||||
if get_option('man-pages')
|
||||
pandoc = find_program('pandoc')
|
||||
mandir1 = join_paths(get_option('mandir'), 'man1')
|
||||
mandir5 = join_paths(get_option('mandir'), 'man5')
|
||||
|
||||
cagebreak_man = custom_target('cagebreak_man',
|
||||
output : 'cagebreak.1',
|
||||
input : 'man/cagebreak.1.md',
|
||||
command : [pandoc, '-i', '@INPUT@', '-o', '@OUTPUT@', '-f', 'markdown-smart', '-t', 'man', '-s'],
|
||||
install: true,
|
||||
install_dir: mandir1
|
||||
)
|
||||
cagebreak_man = custom_target('cagebreak_man',
|
||||
output : 'cagebreak.1',
|
||||
input : 'man/cagebreak.1.md',
|
||||
command : [pandoc, '-i', '@INPUT@', '-o', '@OUTPUT@', '-f', 'markdown-smart', '-t', 'man', '-s'],
|
||||
install: true,
|
||||
install_dir: mandir1
|
||||
)
|
||||
|
||||
cagebreak_man = custom_target('cagebreak_config_man',
|
||||
output : 'cagebreak-config.5',
|
||||
input : 'man/cagebreak-config.5.md',
|
||||
command : [pandoc, '-i', '@INPUT@', '-o', '@OUTPUT@', '-f', 'markdown-smart', '-t', 'man', '-s'],
|
||||
install: true,
|
||||
install_dir: mandir5
|
||||
)
|
||||
cagebreak_man = custom_target('cagebreak_config_man',
|
||||
output : 'cagebreak-config.5',
|
||||
input : 'man/cagebreak-config.5.md',
|
||||
command : [pandoc, '-i', '@INPUT@', '-o', '@OUTPUT@', '-f', 'markdown-smart', '-t', 'man', '-s'],
|
||||
install: true,
|
||||
install_dir: mandir5
|
||||
)
|
||||
endif
|
||||
|
||||
if get_option('fuzz')
|
||||
subdir('fuzz')
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
option('xwayland', type: 'boolean', value: 'false', description: 'Enable support for X11 applications')
|
||||
option('man-pages', type: 'boolean', value: 'false', description: 'Build man pages using pandoc')
|
||||
option('fuzz', type: 'boolean', value: 'false', description: 'Enable building fuzzer targets')
|
||||
option('version_override', type: 'string', description: 'Set the project version to the string specified. Used for creating hashes for reproducible builds.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue