diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-10 22:35:00 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-10 22:35:00 +0000 |
commit | 0193d5e58ee5db93cbd8f04c1189044565b92561 (patch) | |
tree | 7296fd25035224b7248a70bfb62993d31ebf6885 | |
parent | 7b70f3f086e6355a4e407cd3f4ebfe9b476eb333 (diff) | |
download | external_llvm-0193d5e58ee5db93cbd8f04c1189044565b92561.zip external_llvm-0193d5e58ee5db93cbd8f04c1189044565b92561.tar.gz external_llvm-0193d5e58ee5db93cbd8f04c1189044565b92561.tar.bz2 |
Added a rule for building TAGS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@723 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile.common | 10 | ||||
-rw-r--r-- | Makefile.rules | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common index c897ac1..0a08491 100644 --- a/Makefile.common +++ b/Makefile.common @@ -136,6 +136,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) diff --git a/Makefile.rules b/Makefile.rules index c897ac1..0a08491 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -136,6 +136,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) |