]> git.lizzy.rs Git - rust.git/blob - mk/ctags.mk
Auto merge of #28977 - arcnmx:cstring-into, r=alexcrichton
[rust.git] / mk / ctags.mk
1 # Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2 # file at the top-level directory of this distribution and at
3 # http://rust-lang.org/COPYRIGHT.
4 #
5 # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 # option. This file may not be copied, modified, or distributed
9 # except according to those terms.
10
11 ######################################################################
12 # TAGS file creation.  No dependency tracking, just do it on demand.
13 # Requires Exuberant Ctags: http://ctags.sourceforge.net/index.html
14 ######################################################################
15
16 .PHONY: TAGS.emacs TAGS.vi
17
18 CTAGS_LOCATIONS=$(wildcard ${CFG_SRC_DIR}src/lib*)
19 CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/librust%,, \
20                 $(patsubst ${CFG_SRC_DIR}src/lib%test,, \
21                                 $(wildcard ${CFG_SRC_DIR}src/lib*))) ${CFG_SRC_DIR}src/libtest
22 CTAGS_OPTS=--options="${CFG_SRC_DIR}src/etc/ctags.rust" --languages=Rust --recurse ${CTAGS_LOCATIONS}
23
24 TAGS.emacs:
25         ctags -e -f $@ ${CTAGS_OPTS}
26
27 TAGS.vi:
28         ctags -f $@ ${CTAGS_OPTS}