summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-04-09 15:27:12 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-04-12 09:54:16 +0200
commit2e84dd47d44a3a65a984e3af724684d4982785a3 (patch)
treec26c01bfee70f6a9a785105cfb81cbcb96b328c0 /Makefile.in
parentebf33323b93870f811c5a701826cfab1f4d41489 (diff)
downloadlvm2-2e84dd47d44a3a65a984e3af724684d4982785a3.tar.gz
makefiles: reuse CSCOPE_DIRS for ctags
Create ctags only from real source files.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 4dceaba1d..3b7e0ecaa 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -76,8 +76,8 @@ daemons.cflow: tools.cflow
cflow: include.cflow
endif
+CSCOPE_DIRS = base daemons device_mapper include lib libdaemon scripts tools libdm test
ifneq ("@CSCOPE_CMD@", "")
-CSCOPE_DIRS = base daemons device_mapper include lib libdaemon scripts tools
cscope.out:
@CSCOPE_CMD@ -b -R $(patsubst %,-s%,$(addprefix $(srcdir)/,$(CSCOPE_DIRS)))
all: cscope.out
@@ -204,8 +204,8 @@ endif
ifneq ($(shell which ctags 2>/dev/null),)
.PHONY: tags
tags:
- test -z "$(shell find $(top_srcdir) -type f -name '*.[ch]' -newer tags 2>/dev/null | head -1)" || $(RM) tags
- test -f tags || find $(top_srcdir) -maxdepth 5 -type f -name '*.[ch]' -exec ctags -a '{}' +
+ test -z "$(shell find $(addprefix $(top_srcdir)/,$(CSCOPE_DIRS)) -type f -name '*.[ch]' -newer tags 2>/dev/null | head -1)" || $(RM) tags
+ test -f tags || find $(addprefix $(top_srcdir)/,$(CSCOPE_DIRS)) -maxdepth 5 -type f -name '*.[ch]' -exec ctags -a '{}' +
CLEAN_TARGETS += tags
endif