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 | fa9dc58c9e97279baa38be8021d1e83a040d3890 (patch) | |
| tree | d1aec275e8672c393c75245d0bc39bca8c35224a | |
| parent | c524e1c714470ca1b7e4098c754dccdd8007e90c (diff) | |
| download | bcm5719-llvm-fa9dc58c9e97279baa38be8021d1e83a040d3890.tar.gz bcm5719-llvm-fa9dc58c9e97279baa38be8021d1e83a040d3890.zip | |
Added a rule for building TAGS.
llvm-svn: 723
| -rw-r--r-- | llvm/Makefile.common | 10 | ||||
| -rw-r--r-- | llvm/Makefile.rules | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/llvm/Makefile.common b/llvm/Makefile.common index c897ac1e47e..0a084912a17 100644 --- a/llvm/Makefile.common +++ b/llvm/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/llvm/Makefile.rules b/llvm/Makefile.rules index c897ac1e47e..0a084912a17 100644 --- a/llvm/Makefile.rules +++ b/llvm/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) |

