From 52f72bfa66cc8e44a5e37de98e7e35c71058bd6c Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Mon, 1 May 2017 05:59:52 +0000 Subject: [PATCH] Fix "make cscope-clean" when .OBJDIR already exists The cscope generated files are always put in .CURDIR . MFC after: 1 month Sponsored by: Dell EMC Isilon --- sys/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/Makefile b/sys/Makefile index e5bd3cf142b3..6af2e2c28def 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -32,7 +32,8 @@ ${.CURDIR}/cscope.files: .PHONY find ${CSCOPEDIRS} -name "*.[chSsly]" -a -type f > ${.TARGET} cscope-clean: - rm -f cscope.files cscope.out cscope.in.out cscope.po.out + cd ${.CURDIR}; \ + rm -f cscope.files cscope.out cscope.in.out cscope.po.out # # Installs SCM hooks to update the cscope database every time the source tree