Fixed tags target so it only happens at root level.

llvm-svn: 787
This commit is contained in:
Vikram S. Adve 2001-10-13 12:26:59 +00:00
parent 83d64a068d
commit a0e99085b2
2 changed files with 14 additions and 4 deletions

View File

@ -139,9 +139,14 @@ endif
# Create a TAGS database for emacs
#------------------------------------------------------------------------
tags:
cd $(LEVEL); etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'`
ifeq ($(LEVEL), .)
tags:
etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'`
all:: tags
endif
#------------------------------------------------------------------------
# Handle the TOOLNAME option - used when building tool executables...

View File

@ -139,9 +139,14 @@ endif
# Create a TAGS database for emacs
#------------------------------------------------------------------------
tags:
cd $(LEVEL); etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'`
ifeq ($(LEVEL), .)
tags:
etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'`
all:: tags
endif
#------------------------------------------------------------------------
# Handle the TOOLNAME option - used when building tool executables...