Added a rule for building TAGS.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 10 Oct 2001 22:35:00 +0000 (22:35 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 10 Oct 2001 22:35:00 +0000 (22:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@723 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index c897ac1e47e864e9b1a00ce22d9ec96955230256..0a084912a17d01c71048ed8992630f154713724c 100644 (file)
@@ -135,6 +135,14 @@ $(LIBNAME_AG): $(ObjectsG) $(LibSubDirs) $(LEVEL)/lib/Debug/.dir Depend/.dir
 
 endif
 
+#------------------------------------------------------------------------
+# Create a TAGS database for emacs
+#------------------------------------------------------------------------
+
+tags:
+       cd $(LEVEL); etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'`
+
+
 #------------------------------------------------------------------------
 # Handle the TOOLNAME option - used when building tool executables...
 #------------------------------------------------------------------------
@@ -159,7 +167,7 @@ STATICUSEDLIBS = $(addsuffix .a, $(USEDLIBS))
 USED_LIB_PATHS_G = $(addprefix $(LEVEL)/lib/Debug/lib, $(STATICUSEDLIBS))
 USED_LIB_PATHS_O = $(addprefix $(LEVEL)/lib/Release/lib, $(STATICUSEDLIBS))
 
-all::   $(TOOLEXENAMES)
+all::   $(TOOLEXENAMES) tags
 clean::
        rm -f $(TOOLEXENAMES)
 
index c897ac1e47e864e9b1a00ce22d9ec96955230256..0a084912a17d01c71048ed8992630f154713724c 100644 (file)
@@ -135,6 +135,14 @@ $(LIBNAME_AG): $(ObjectsG) $(LibSubDirs) $(LEVEL)/lib/Debug/.dir Depend/.dir
 
 endif
 
+#------------------------------------------------------------------------
+# Create a TAGS database for emacs
+#------------------------------------------------------------------------
+
+tags:
+       cd $(LEVEL); etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'`
+
+
 #------------------------------------------------------------------------
 # Handle the TOOLNAME option - used when building tool executables...
 #------------------------------------------------------------------------
@@ -159,7 +167,7 @@ STATICUSEDLIBS = $(addsuffix .a, $(USEDLIBS))
 USED_LIB_PATHS_G = $(addprefix $(LEVEL)/lib/Debug/lib, $(STATICUSEDLIBS))
 USED_LIB_PATHS_O = $(addprefix $(LEVEL)/lib/Release/lib, $(STATICUSEDLIBS))
 
-all::   $(TOOLEXENAMES)
+all::   $(TOOLEXENAMES) tags
 clean::
        rm -f $(TOOLEXENAMES)