Added a rule for building TAGS.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@723 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2001-10-10 22:35:00 +00:00
parent 7b70f3f086
commit 0193d5e58e
2 changed files with 18 additions and 2 deletions

View File

@ -135,6 +135,14 @@ $(LIBNAME_AG): $(ObjectsG) $(LibSubDirs) $(LEVEL)/lib/Debug/.dir Depend/.dir
endif 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... # 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_G = $(addprefix $(LEVEL)/lib/Debug/lib, $(STATICUSEDLIBS))
USED_LIB_PATHS_O = $(addprefix $(LEVEL)/lib/Release/lib, $(STATICUSEDLIBS)) USED_LIB_PATHS_O = $(addprefix $(LEVEL)/lib/Release/lib, $(STATICUSEDLIBS))
all:: $(TOOLEXENAMES) all:: $(TOOLEXENAMES) tags
clean:: clean::
rm -f $(TOOLEXENAMES) rm -f $(TOOLEXENAMES)

View File

@ -135,6 +135,14 @@ $(LIBNAME_AG): $(ObjectsG) $(LibSubDirs) $(LEVEL)/lib/Debug/.dir Depend/.dir
endif 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... # 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_G = $(addprefix $(LEVEL)/lib/Debug/lib, $(STATICUSEDLIBS))
USED_LIB_PATHS_O = $(addprefix $(LEVEL)/lib/Release/lib, $(STATICUSEDLIBS)) USED_LIB_PATHS_O = $(addprefix $(LEVEL)/lib/Release/lib, $(STATICUSEDLIBS))
all:: $(TOOLEXENAMES) all:: $(TOOLEXENAMES) tags
clean:: clean::
rm -f $(TOOLEXENAMES) rm -f $(TOOLEXENAMES)