From: Rusty Russell Date: Wed, 21 Nov 2012 23:38:53 +0000 (+1030) Subject: TAGS: new Makefile target. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=fdc7a4c95dbf2177b757771434415e27bd482c83 TAGS: new Makefile target. Signed-off-by: Rusty Russell --- 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 $@