diff options
author | Bill Richardson <wfrichar@chromium.org> | 2014-08-26 10:34:40 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-29 21:55:53 +0000 |
commit | 0e6ae29eec7a58eeeeba67356c3a3ee384ba6687 (patch) | |
tree | 70b6f1a213f0f62a73f5d55477045986258dbc2a | |
parent | 78d59bffec45da47b4e8a763186723192dd24f87 (diff) | |
download | vboot-0e6ae29eec7a58eeeeba67356c3a3ee384ba6687.tar.gz |
Add 'tags' target to Makefile
Handy for quick code searches.
BUG=none
BRANCH=ToT
TEST=manual
make tags
Change-Id: Icc21769a168d1760f4f21802e1183a519cfeb019
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/214620
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -226,7 +226,7 @@ INCLUDES += \ # If we're not building for a specific target, just stub out things like the # TPM commands and various external functions that are provided by the BIOS. ifeq (${FIRMWARE_ARCH},) -INCLUDES += -Ifirmware/stub/include -Ihost/include -Ihost/lib/include +INCLUDES += -Ihost/include -Ihost/lib/include else INCLUDES += -Ifirmware/arch/${FIRMWARE_ARCH}/include endif @@ -681,6 +681,13 @@ install_for_test: install # Don't delete intermediate object files .SECONDARY: +.PHONY: tags TAGS +tags TAGS: ${CGPT_SRCS} ${FUTIL_SRCS} ${UTILLIB_SRCS} ${FWLIB_SRCS} \ + $(if ${VBOOT2},${FWLIB2_SRCS}) \ + $(wildcard $(patsubst -I%,%/*.h,${INCLUDES})) + ${Q}\rm -f cscope.* TAGS + ${Q}echo $^ | tr ' ' '\012' > cscope.files + ${Q}$(if $(shell which etags 2>/dev/null),etags $^,echo "no etags") # ---------------------------------------------------------------------------- # Firmware library |