meson: use run_target instead of custom_target where appropriate

This way a fake output does not need to be specified.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-04-17 19:48:20 -04:00
parent 1aec3ed90d
commit a923e085af
3 changed files with 22 additions and 23 deletions

View File

@ -31,7 +31,6 @@ endif
############################################################
custom_target(
run_target(
'update',
output : 'update',
command : [hwdb_update_sh, meson.current_source_dir()])

View File

@ -130,24 +130,25 @@ foreach tuple : [['systemd.directives', '7', systemd_directives_xml],
html_pages += [p2]
endforeach
man = custom_target('man',
depends : man_pages,
output : 'man',
command : ['echo'])
man = run_target(
'man',
depends : man_pages,
command : ['echo'])
html = custom_target('html',
depends : html_pages,
output : 'html',
command : ['echo'])
html = run_target(
'html',
depends : html_pages,
output : 'html',
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')])
run_target(
'doc-sync',
depends : man_pages + html_pages,
command : ['rsync', '-rlv',
'--delete-excluded',
'--include=man',
'--include=*.html',
'--exclude=*',
'--omit-dir-times',
meson.current_build_dir(),
get_option('www-target')])

View File

@ -2278,8 +2278,7 @@ endif
if git.found()
meson_git_contrib_sh = find_program('tools/meson-git-contrib.sh')
custom_target(
run_target(
'git-contrib',
output : 'git-contrib',
command : [meson_git_contrib_sh])
endif