chiark / gitweb /
meson: use env object instead of string in tags targets
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 Jan 2018 15:15:17 +0000 (16:15 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:20 +0000 (07:50 +0200)
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().

meson.build

index 2e592cee61650cca300aac36c2fbd5cbd9d7ac46..81a414fcb3bd75294195ef882fb3f1f63c48a2ad 100644 (file)
@@ -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