From 9452e62efb28acdadc916c00d39e7cd615d5c953 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 4 Apr 2021 11:25:54 +0200 Subject: [PATCH] makefiles: cscope only predefined dirs Avoid scanning for source duplicates in various build dirs. --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index c0915fac7..69c73598e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -83,8 +83,9 @@ cflow: include.cflow endif ifneq ("@CSCOPE_CMD@", "") +CSCOPE_DIRS = base daemons device_mapper include lib libdaemon scripts tools cscope.out: - @CSCOPE_CMD@ -b -R -s$(top_srcdir) + @CSCOPE_CMD@ -b -R $(patsubst %,-s%,$(addprefix $(srcdir)/,$(CSCOPE_DIRS))) all: cscope.out endif DISTCLEAN_TARGETS += cscope.out