mirror of
https://github.com/rust-lang/rust
synced 2024-11-02 14:59:06 +00:00
Add TAGS.rustc.emacs
/TAGS.rustc.vi
make targets, (re-)including rustc source.
This commit is contained in:
parent
009a64916e
commit
f7e1421deb
1 changed files with 11 additions and 4 deletions
15
mk/ctags.mk
15
mk/ctags.mk
|
@ -15,14 +15,21 @@
|
||||||
|
|
||||||
.PHONY: TAGS.emacs TAGS.vi
|
.PHONY: TAGS.emacs TAGS.vi
|
||||||
|
|
||||||
CTAGS_LOCATIONS=$(wildcard ${CFG_SRC_DIR}src/lib*)
|
CTAGS_RUSTC_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/lib%test,, \
|
||||||
|
$(wildcard ${CFG_SRC_DIR}src/lib*)) ${CFG_SRC_DIR}src/libtest
|
||||||
CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/librust%,, \
|
CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/librust%,, \
|
||||||
$(patsubst ${CFG_SRC_DIR}src/lib%test,, \
|
$(patsubst ${CFG_SRC_DIR}src/lib%test,, \
|
||||||
$(wildcard ${CFG_SRC_DIR}src/lib*))) ${CFG_SRC_DIR}src/libtest
|
$(wildcard ${CFG_SRC_DIR}src/lib*))) ${CFG_SRC_DIR}src/libtest
|
||||||
CTAGS_OPTS=--options="${CFG_SRC_DIR}src/etc/ctags.rust" --languages=Rust --recurse ${CTAGS_LOCATIONS}
|
CTAGS_OPTS=--options="${CFG_SRC_DIR}src/etc/ctags.rust" --languages=Rust --recurse
|
||||||
|
|
||||||
|
TAGS.rustc.emacs:
|
||||||
|
ctags -e -f $@ ${CTAGS_OPTS} ${CTAGS_RUSTC_LOCATIONS}
|
||||||
|
|
||||||
TAGS.emacs:
|
TAGS.emacs:
|
||||||
ctags -e -f $@ ${CTAGS_OPTS}
|
ctags -e -f $@ ${CTAGS_OPTS} ${CTAGS_LOCATIONS}
|
||||||
|
|
||||||
|
TAGS.rustc.vi:
|
||||||
|
ctags -f $@ ${CTAGS_OPTS} ${CTAGS_RUSTC_LOCATIONS}
|
||||||
|
|
||||||
TAGS.vi:
|
TAGS.vi:
|
||||||
ctags -f $@ ${CTAGS_OPTS}
|
ctags -f $@ ${CTAGS_OPTS} ${CTAGS_LOCATIONS}
|
||||||
|
|
Loading…
Reference in a new issue