From 022d06ce2f177ac6b2432d8f9a2527b8c7e9eb86 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@787 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.common | 7 ++++++- Makefile.rules | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile.common b/Makefile.common index c64b26f3430..470fd81c790 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... diff --git a/Makefile.rules b/Makefile.rules index c64b26f3430..470fd81c790 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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... -- 2.34.1