Add tags/TAGS target; rm tags/TAGS in clean
authorRich Salz <rsalz@akamai.com>
Wed, 27 Aug 2014 00:51:52 +0000 (20:51 -0400)
committerRich Salz <rsalz@akamai.com>
Wed, 27 Aug 2014 00:51:52 +0000 (20:51 -0400)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Makefile.org

index d7c9db6fbbd4045c08754c8dbf12ee61ad5fff23..372cd38dcd13c31409f9b5df5f9d7a1292becf12 100644 (file)
@@ -497,7 +497,7 @@ libclean:
 clean: libclean
        rm -f shlib/*.o *.o core a.out fluff rehash.time testlog make.log cctest cctest.c
        @set -e; target=clean; $(RECURSIVE_BUILD_CMD)
-       rm -f $(LIBS)
+       rm -f $(LIBS) tags TAGS
        rm -f openssl.pc libssl.pc libcrypto.pc
        rm -f speed.* .pure
        rm -f $(TARFILE)
@@ -557,9 +557,12 @@ depend:
 lint:
        @set -e; target=lint; $(RECURSIVE_BUILD_CMD)
 
-tags:
-       rm -f TAGS
-       find . -name '[^.]*.[ch]' | xargs etags -a
+tags TAGS: FORCE
+       rm -f TAGS tags
+       -ctags -R .
+       -etags -R .
+
+FORCE:
 
 errors:
        $(PERL) util/ck_errf.pl -strict */*.c */*/*.c