]> git.ozlabs.org Git - ccan/blobdiff - Makefile
TAGS: new Makefile target.
[ccan] / Makefile
index 13aa195dd0e379187a34d5470d927177f89c7c13..0101fe0653b5601bb9c30888a99b57f1718fa799 100644 (file)
--- 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 $@