html_pages += [p2]
endforeach
-man = custom_target('man',
- depends : man_pages,
- output : 'man',
- command : ['echo'])
-
-html = custom_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')])
+man = run_target(
+ 'man',
+ depends : man_pages,
+ command : ['echo'])
+
+html = run_target(
+ 'html',
+ depends : html_pages,
+ output : 'html',
+ command : ['echo'])
+
+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')])
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