Make tags target useful.
[openssl.git] / Makefile.org
index 6b580d6ab6ef022fa39fb4b464dad52138285a48..de6d7280af3323c6b2a843bb410be4d25a886a07 100644 (file)
@@ -362,13 +362,8 @@ lint:
        done;
 
 tags:
-       @set -e; for i in $(DIRS) ;\
-       do \
-       if [ -d "$$i" ]; then \
-               (cd $$i && echo "making tags $$i..." && \
-               $(MAKE) SDIRS='${SDIRS}' tags ) || exit 1; \
-       fi; \
-       done;
+       rm -f TAGS
+       find . -name '[^.]*.[ch]' | xargs etags -a
 
 errors:
        $(PERL) util/mkerr.pl -recurse -write