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-Tag: v237~13^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25a82102345170539541c3a3d050932472fd21cc;p=platform%2Fupstream%2Fsystemd.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 4af9c7b..94653ae 100644 --- a/meson.build +++ b/meson.build @@ -2644,11 +2644,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 git.found()