From: Evegeny Vereshchagin Date: Fri, 18 May 2018 10:52:17 +0000 (+0000) Subject: meson: use run_target for generating tags with ctags X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=43810cf7ec7e3b0b9dd0637334befb70072ce10b;p=elogind.git meson: use run_target for generating tags with ctags In https://github.com/systemd/systemd/pull/6561, `run_target` was changed to `custom_target`, which inadvertently caused relative paths to be passed to ctags due to https://github.com/mesonbuild/meson/issues/3589. The switch to `run_target` causes absolute paths to be passed again and makes it easier to jump from file to file, hopefully delaying the need to exit Vim :-) --- diff --git a/meson.build b/meson.build index c18b5b496..c18438a6b 100644 --- a/meson.build +++ b/meson.build @@ -1912,6 +1912,7 @@ public_programs += [exe] executable('elogind-user-runtime-dir', executable('elogind-user-runtime-dir', executable('elogind-user-runtime-dir', +executable('elogind-user-runtime-dir', executable('elogind-user-runtime-dir', user_runtime_dir_sources, include_directories : includes, @@ -3052,9 +3053,8 @@ if git.found() 'tags', output : 'tags', command : [env, 'etags', '-o', '@0@/TAGS'.format(meson.current_source_dir())] + all_files) - custom_target( + run_target( 'ctags', - output : 'ctags', command : [env, 'ctags', '-o', '@0@/tags'.format(meson.current_source_dir())] + all_files) endif