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://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7933%2Fhead;p=thirdparty%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 4af9c7bf97d..94653ae85b2 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()