From fdc7a4c95dbf2177b757771434415e27bd482c83 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 22 Nov 2012 10:08:53 +1030 Subject: [PATCH] TAGS: new Makefile target. Signed-off-by: Rusty Russell --- .gitignore | 1 + Makefile | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 57a114b3..2cccc453 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +TAGS .depends *.d *.o diff --git a/Makefile b/Makefile index 13aa195d..0101fe06 100644 --- a/Makefile +++ b/Makefile @@ -122,6 +122,11 @@ inter-depends: $(ALL_DEPENDS) Makefile test-depends: $(ALL_DEPENDS) Makefile for f in $(ALL_DEPENDS); do echo check-`basename \`dirname $$f\``: `sed -n 's,ccan/\(.*\),check-\1,p' < $$f`; done > $@ +TAGS: FORCE + find * -name '*.[ch]' | xargs etags + +FORCE: + # Ensure we don't end up with empty file if configurator fails! config.h: tools/configurator/configurator Makefile Makefile-ccan tools/configurator/configurator $(CC) $(CCAN_CFLAGS) > $@ || rm -f $@ -- 2.39.2