diff options
author | Bill Richardson <wfrichar@chromium.org> | 2013-04-26 13:58:18 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-04-26 17:17:20 -0700 |
commit | 7363535f0e2c32a9ad94f1894c69fbb9bd51c6e8 (patch) | |
tree | a00a27a5428b7de2e14a08f209f4b38f665da6f7 /Makefile.rules | |
parent | df06f61cccd415e3d20d187b3438bd565b81c9c3 (diff) | |
download | chrome-ec-7363535f0e2c32a9ad94f1894c69fbb9bd51c6e8.tar.gz |
Add 'TAGS' target to Makefile
This creates cscope.files and an emacs TAGS file for the specified BOARD. If
you don't have etags installed, it just creates cscope.files.
BUG=none
BRANCH=none
TEST=manual
make BOARD=link tags
ls
Change-Id: I9b27ba42ac4e85822c5a5a6e8cb5b5148a3435c3
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/49356
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index ae173eab98..1f68e0f602 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -119,6 +119,16 @@ $(host-utils): $(out)/%:%.c $(foreach u,$(host-util-common),util/$(u).c) \ $(out)/util/burn_my_ec: $(out)/$(PROJECT).bin +.PHONY: FORCE +cscope.files: FORCE + @-rm -f cscope.out + @find chip/${CHIP} board/${BOARD} common core include -name '*.[chS]' \ + -not -name '*test*' -not -name '*mock*' -not -name '*~*' \ + > cscope.files + +TAGS tags: cscope.files + @etags $(shell cat cscope.files) + .PHONY: clean clean: -rm -rf $(out) |