summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-10-13 12:26:59 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-10-13 12:26:59 +0000
commit022d06ce2f177ac6b2432d8f9a2527b8c7e9eb86 (patch)
tree5f1980afcc58a8583fcfef0adadff70949e9aaa6 /Makefile.common
parent836f414c2c36dfd9407b38e556464925baeac487 (diff)
downloadllvm-022d06ce2f177ac6b2432d8f9a2527b8c7e9eb86.tar.gz
llvm-022d06ce2f177ac6b2432d8f9a2527b8c7e9eb86.tar.bz2
llvm-022d06ce2f177ac6b2432d8f9a2527b8c7e9eb86.tar.xz
Fixed tags target so it only happens at root level.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index c64b26f343..470fd81c79 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -139,9 +139,14 @@ endif
# Create a TAGS database for emacs
#------------------------------------------------------------------------
+ifeq ($(LEVEL), .)
+
tags:
- cd $(LEVEL); etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'`
+ etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'`
+
+all:: tags
+endif
#------------------------------------------------------------------------
# Handle the TOOLNAME option - used when building tool executables...