Make the tags rule tolerate lack of one of the standard directories
authorChris Lattner <sabre@nondot.org>
Thu, 21 Aug 2003 21:53:38 +0000 (21:53 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 21 Aug 2003 21:53:38 +0000 (21:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8027 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index 95fa3b2758d70e73c7d5370027e153b5e19772ef..11c6a2376dbdf269c9d347eb9d48644b8cc34838 100644 (file)
@@ -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
index 95fa3b2758d70e73c7d5370027e153b5e19772ef..11c6a2376dbdf269c9d347eb9d48644b8cc34838 100644 (file)
@@ -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