Added generation of ctags to Makefile.
authorMika Westerberg <mika.westerberg@iki.fi>
Thu, 26 Feb 2009 11:48:38 +0000 (13:48 +0200)
committerRiku Voipio <riku.voipio@nokia.com>
Thu, 5 Mar 2009 09:55:08 +0000 (11:55 +0200)
Makefile

index 4f7a55a..2af9556 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -192,7 +192,7 @@ qemu-img$(EXESUF) qemu-nbd$(EXESUF): LIBS += -lz
 clean:
 # avoid old build problems by removing potentially incorrect old files
        rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
-       rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
+       rm -f *.o *.d *.a $(TOOLS) tags TAGS cscope.* *.pod *~ */*~
        rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d
        $(MAKE) -C tests clean
        for d in $(TARGET_DIRS); do \
@@ -256,6 +256,8 @@ test speed: all
 
 TAGS:
        etags *.[ch] tests/*.[ch]
+tags:
+       find . -name "*.[ch]" -print | xargs ctags
 
 cscope:
        rm -f ./cscope.*