From 6c19d35f689c911b83073ab1faeffb8040c4b3d9 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 17 Dec 2014 17:58:23 +0100 Subject: Makefile: fix cscope target This target doesn't work with current directory layout. Just make cscope index all .c and .h files. While we're at it: add cscope output files to .gitignore. Signed-off-by: Bartosz Golaszewski Signed-off-by: Denys Vlasenko --- Makefile | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cd42ca37b..e0888578f 100644 --- a/Makefile +++ b/Makefile @@ -1165,24 +1165,7 @@ endif ALLSOURCE_ARCHS := $(ARCH) define all-sources - ( find $(__srctree) $(RCS_FIND_IGNORE) \ - \( -name include -o -name arch \) -prune -o \ - -name '*.[chS]' -print; \ - for ARCH in $(ALLSOURCE_ARCHS) ; do \ - find $(__srctree)arch/$${ARCH} $(RCS_FIND_IGNORE) \ - -name '*.[chS]' -print; \ - done ; \ - find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \ - -name '*.[chS]' -print; \ - find $(__srctree)include $(RCS_FIND_IGNORE) \ - \( -name config -o -name 'asm-*' \) -prune \ - -o -name '*.[chS]' -print; \ - for ARCH in $(ALLINCLUDE_ARCHS) ; do \ - find $(__srctree)include/asm-$${ARCH} $(RCS_FIND_IGNORE) \ - -name '*.[chS]' -print; \ - done ; \ - find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ - -name '*.[chS]' -print ) + ( find -regex '.*\.[ch]$$' ) endef quiet_cmd_cscope-file = FILELST cscope.files -- cgit v1.2.3