From: Chris Lattner Date: Thu, 21 Aug 2003 21:53:38 +0000 (+0000) Subject: Make the tags rule tolerate lack of one of the standard directories X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=942f904af784127406c722301c164ae94fe38d18;p=oota-llvm.git 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 --- diff --git a/Makefile.common b/Makefile.common index 95fa3b2758d..11c6a2376db 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 diff --git a/Makefile.rules b/Makefile.rules index 95fa3b2758d..11c6a2376db 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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