From: Zbigniew Jędrzejewski-Szmek Date: Fri, 26 Jan 2018 15:15:17 +0000 (+0100) Subject: meson: use env object instead of string in tags targets X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1e586f516c80afd3fac03c49203d49ea89729dbe;p=elogind.git meson: use env object instead of string in tags targets I used 'tags' before because this way we avoided a unnecessary line about 'env' detection. But we cannot use 'env' in test(), so previous commit added 'env' detection. We might just as well use it in custom_target(). --- diff --git a/meson.build b/meson.build index 2e592cee6..81a414fcb 100644 --- a/meson.build +++ b/meson.build @@ -2955,11 +2955,11 @@ if git.found() custom_target( 'tags', output : 'tags', - command : ['env', 'etags', '-o', '@0@/TAGS'.format(meson.current_source_dir())] + all_files) + command : [env, 'etags', '-o', '@0@/TAGS'.format(meson.current_source_dir())] + all_files) custom_target( 'ctags', output : 'ctags', - command : ['env', 'ctags', '-o', '@0@/tags'.format(meson.current_source_dir())] + all_files) + command : [env, 'ctags', '-o', '@0@/tags'.format(meson.current_source_dir())] + all_files) endif #if 0 /// UNNEEDED by elogind