summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-21 21:53:38 +0000
committerChris Lattner <sabre@nondot.org>2003-08-21 21:53:38 +0000
commit942f904af784127406c722301c164ae94fe38d18 (patch)
tree06b07eda839c7a042119dfc46f051adc42f34e58 /Makefile.common
parent87486b483cd2466d2dd0914df146f24f58c4f7b5 (diff)
downloadllvm-942f904af784127406c722301c164ae94fe38d18.tar.gz
llvm-942f904af784127406c722301c164ae94fe38d18.tar.bz2
llvm-942f904af784127406c722301c164ae94fe38d18.tar.xz
Make the tags rule tolerate lack of one of the standard directories
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index 95fa3b2758..11c6a2376d 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -615,8 +615,10 @@ endif
ifdef ETAGS
ifeq ($(LEVEL), .)
+SRCDIRS := $(wildcard include lib tools)
+
tags:
- $(ETAGS) -l c++ `find include lib tools -name '*.cpp' -o -name '*.h'`
+ $(ETAGS) -l c++ `find $(SRCDIRS) -name '*.cpp' -o -name '*.h'`
all:: tags
endif
else