From a0e99085b292f38e8358e73797a073f5699f5140 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Sat, 13 Oct 2001 12:26:59 +0000 Subject: [PATCH] Fixed tags target so it only happens at root level. llvm-svn: 787 --- llvm/Makefile.common | 9 +++++++-- llvm/Makefile.rules | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/llvm/Makefile.common b/llvm/Makefile.common index c64b26f3430b..470fd81c7902 100644 --- a/llvm/Makefile.common +++ b/llvm/Makefile.common @@ -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... diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index c64b26f3430b..470fd81c7902 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -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...