Make the tags rule tolerate lack of one of the standard directories

llvm-svn: 8027
This commit is contained in:
Chris Lattner 2003-08-21 21:53:38 +00:00
parent f02da5ba9d
commit 132c88da07
2 changed files with 6 additions and 2 deletions

View 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

View 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