Fixed tags target so it only happens at root level.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 13 Oct 2001 12:26:59 +0000 (12:26 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 13 Oct 2001 12:26:59 +0000 (12:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@787 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index c64b26f3430b0d09e4719dc1f3342d10d1367916..470fd81c790276e2df79db2884afbad32b36c3e3 100644 (file)
@@ -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...
index c64b26f3430b0d09e4719dc1f3342d10d1367916..470fd81c790276e2df79db2884afbad32b36c3e3 100644 (file)
@@ -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...