Skip to content

Commit

Permalink
meson: use TAGS for the etags output (systemd#51)
Browse files Browse the repository at this point in the history
This is confusing, but etags(1) is pretty clear:
- emacs expects TAGS file in etags format
- vi expects tags file in ctags format
and automake docs are pretty clear too:
- tags generates TAGS file
- ctags generates tags file
  • Loading branch information
keszybz authored and poettering committed Jul 3, 2017
1 parent 02fbbdb commit b687a94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
/GSYMS
/GTAGS
/TAGS
/tags
/build*/
6 changes: 4 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ if git.found()
':/*.[ch]'])
all_files = files(all_files.stdout().split())

run_target('tags', command : ['env', 'etags', '-o', '@0@/@1@'.format(meson.source_root(), 'tags')] + all_files)
run_target('ctags', command : ['env', 'ctags', '-o', '@0@/@1@'.format(meson.source_root(), 'tags')] + all_files)
run_target('tags',
command : ['env', 'etags', '-o', '@0@/@1@'.format(meson.source_root(), 'TAGS')] + all_files)
run_target('ctags',
command : ['env', 'ctags', '-o', '@0@/@1@'.format(meson.source_root(), 'tags')] + all_files)
endif

0 comments on commit b687a94

Please sign in to comment.