Re: kbuild: Remove cscope.out during make mrproper

GOTO Masanori
2003-09-22T17:25:11Z

At Wed, 10 Sep 2003 21:18:24 +0200,
Sam Ravnborg wrote:
> # From: "Nathan T. Lynch" <ntl@pobox.com>
> #
> # The attached patch fixes the toplevel Makefile to remove cscope.out
> # during make mrproper. The default name for the database that cscope
> # creates is cscope.out, and this is what the cscope rule in the
> # makefile uses. Currently, mrproper will leave cscope.out behind,
> # which can make for interesting diffs...
> # --------------------------------------------
> #
> diff -Nru a/Makefile b/Makefile
> --- a/Makefile Wed Sep 10 21:15:47 2003
> +++ b/Makefile Wed Sep 10 21:15:47 2003
> @@ -675,7 +675,7 @@
> .menuconfig.log \
> include/asm \
> .hdepend include/linux/modversions.h \
> - tags TAGS cscope kernel.spec \
> + tags TAGS cscope.out kernel.spec \

This patch looks fine. But it's also good idea to remove
cscope.in.out, cscope.po.out (for inverted index: -q option).

--- Makefile.org 2003-09-12 10:20:18.000000000 +0900
+++ Makefile 2003-09-12 10:20:00.000000000 +0900
@@ -672,7 +672,7 @@
.menuconfig.log \
include/asm \
.hdepend include/linux/modversions.h \
- tags TAGS cscope kernel.spec \
+ tags TAGS cscope.out cscope.in.out cscope.po.out kernel.spec \
.tmp*

# Directories removed with 'make mrproper'

Regards,
-- gotom