mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-11 18:42:01 +00:00
Move support for building tags database from Makefile.rules to Makefile, because
it's only used in the top-level directory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84dc5fb6ba
commit
6fdaf4a219
13
Makefile
13
Makefile
@ -31,8 +31,7 @@ configure: autoconf/configure.ac autoconf/aclocal.m4
|
|||||||
include/Config/config.h.in: autoconf/configure.ac autoconf/aclocal.m4
|
include/Config/config.h.in: autoconf/configure.ac autoconf/aclocal.m4
|
||||||
autoheader -I autoconf autoconf/configure.ac
|
autoheader -I autoconf autoconf/configure.ac
|
||||||
|
|
||||||
# Install support for llvm include files.
|
# Install support for llvm include files:
|
||||||
|
|
||||||
.PHONY: install-includes
|
.PHONY: install-includes
|
||||||
|
|
||||||
install-includes:
|
install-includes:
|
||||||
@ -41,3 +40,13 @@ install-includes:
|
|||||||
|
|
||||||
install:: install-includes
|
install:: install-includes
|
||||||
|
|
||||||
|
# Build tags database for Emacs/Xemacs:
|
||||||
|
.PHONY: tags
|
||||||
|
|
||||||
|
TAGS: tags
|
||||||
|
|
||||||
|
all:: tags
|
||||||
|
|
||||||
|
tags:
|
||||||
|
$(ETAGS) $(ETAGSFLAGS) `find $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools) -name '*.cpp' -o -name '*.h'`
|
||||||
|
|
||||||
|
@ -607,23 +607,6 @@ install-single-object-library: $(LIBNAME_OBJCUR)
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# Create a TAGS database for emacs
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ifneq ($(ETAGS),false)
|
|
||||||
ifeq ($(LEVEL), .)
|
|
||||||
SRCDIRS := $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools)
|
|
||||||
|
|
||||||
tags:
|
|
||||||
$(ETAGS) -l c++ `find $(SRCDIRS) -name '*.cpp' -o -name '*.h'`
|
|
||||||
all:: tags
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
tags:
|
|
||||||
${ECHO} "Cannot build $@: The program etags is not installed"
|
|
||||||
endif
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
# Handle the TOOLNAME option - used when building tool executables...
|
# Handle the TOOLNAME option - used when building tool executables...
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user