mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
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:
parent
1aec3ed90d
commit
a923e085af
@ -31,7 +31,6 @@ endif
|
||||
|
||||
############################################################
|
||||
|
||||
custom_target(
|
||||
run_target(
|
||||
'update',
|
||||
output : 'update',
|
||||
command : [hwdb_update_sh, meson.current_source_dir()])
|
||||
|
@ -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')])
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user