From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: [PATCH v2] Makefile: Add tags rule Date: Thu, 26 Jan 2017 10:48:14 -0800 Message-ID: <20170126184814.5325-1-stephen.boyd@linaro.org> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gZd1UFnKbJMP9IEMLxNXa4ST9OgIxDiyF5WMRdmy53U=; b=ACGyDeyFeRxpXG62gXnARLWSlyoBLqujC4N7RbgQCyWa13lvM52IqvWvS41x8r8dJb Or61sc4m/Qjq38CP37KN+dyt+mGLPeNeKMRFK+HwrNqctgcS/BZpF3ZYYbx5d+/vNRGL qT6GjpNBDxl86WLrFyvC3z0DCDNIuSnGss3ag= Sender: devicetree-compiler-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Gibson Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org It's useful to have some tags to jump around sources. We don't include test sources in the toplevel Makefile because they probably aren't useful to main program development. Signed-off-by: Stephen Boyd --- I noticed my previous patch wasn't pruning the *.tab.[ch] and *.lex.c files. This version corrects the find command so those aren't included. Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 32dcfcf8e203..ce05eba6590b 100644 --- a/Makefile +++ b/Makefile @@ -218,6 +218,12 @@ kup: dist $(KUPDIR)/dtc-$(dtc_version).tar.gz endif +tags: FORCE + rm -f tags + find . \( -name tests -type d -prune \) -o \ + \( ! -name '*.tab.[ch]' ! -name '*.lex.c' \ + -name '*.[chly]' -type f -print \) | xargs ctags -a + # # Testsuite rules # -- 2.10.0.297.gf6727b0