From 0e6ae29eec7a58eeeeba67356c3a3ee384ba6687 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Tue, 26 Aug 2014 10:34:40 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/214620 Reviewed-by: Randall Spangler --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2cdecc0354..300d317c2b 100644 --- a/Makefile +++ b/Makefile @@ -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