mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
Add TAGS.rustc.emacs
/TAGS.rustc.vi
make targets, (re-)including rustc source.
This commit is contained in:
parent
009a64916e
commit
f7e1421deb
15
mk/ctags.mk
15
mk/ctags.mk
|
@ -15,14 +15,21 @@
|
|||
|
||||
.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%,, \
|
||||
$(patsubst ${CFG_SRC_DIR}src/lib%test,, \
|
||||
$(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:
|
||||
ctags -e -f $@ ${CTAGS_OPTS}
|
||||
ctags -e -f $@ ${CTAGS_OPTS} ${CTAGS_LOCATIONS}
|
||||
|
||||
TAGS.rustc.vi:
|
||||
ctags -f $@ ${CTAGS_OPTS} ${CTAGS_RUSTC_LOCATIONS}
|
||||
|
||||
TAGS.vi:
|
||||
ctags -f $@ ${CTAGS_OPTS}
|
||||
ctags -f $@ ${CTAGS_OPTS} ${CTAGS_LOCATIONS}
|
||||
|
|
Loading…
Reference in a new issue