meson: add man/doc-sync target
Seems to work OK. It would be nicer to call it 'doc-sync' not 'man/doc-sync', but OK.
This commit is contained in:
parent
83b6af36d1
commit
f75d75eb66
@ -133,12 +133,24 @@ foreach tuple : [['systemd.directives', '7', systemd_directives_xml],
|
|||||||
html_pages += [p2]
|
html_pages += [p2]
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
custom_target('man',
|
man = custom_target('man',
|
||||||
depends : man_pages,
|
depends : man_pages,
|
||||||
output : ['man'],
|
output : 'man',
|
||||||
command : ['echo'])
|
command : ['echo'])
|
||||||
|
|
||||||
custom_target('html',
|
html = custom_target('html',
|
||||||
depends : html_pages,
|
depends : html_pages,
|
||||||
output : ['html'],
|
output : 'html',
|
||||||
command : ['echo'])
|
command : ['echo'])
|
||||||
|
|
||||||
|
custom_target('doc-sync',
|
||||||
|
depends : [man, html],
|
||||||
|
output : ['doc-sync'],
|
||||||
|
command : ['rsync', '-rlv',
|
||||||
|
'--delete-excluded',
|
||||||
|
'--include=man',
|
||||||
|
'--include=*.html',
|
||||||
|
'--exclude=*',
|
||||||
|
'--omit-dir-times',
|
||||||
|
meson.current_build_dir(),
|
||||||
|
get_option('www-target')])
|
||||||
|
@ -154,6 +154,9 @@ option('ntp-servers', type : 'string',
|
|||||||
option('support-url', type : 'string',
|
option('support-url', type : 'string',
|
||||||
description : 'the support URL to show in catalog entries included in systemd',
|
description : 'the support URL to show in catalog entries included in systemd',
|
||||||
value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
|
value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
|
||||||
|
option('www-target', type : 'string',
|
||||||
|
description : 'the address and dir to upload docs too',
|
||||||
|
value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
|
||||||
|
|
||||||
option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
|
option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
|
||||||
description : 'SECCOMP support')
|
description : 'SECCOMP support')
|
||||||
|
Loading…
Reference in New Issue
Block a user