From 29adcb7e1b1ef78233cfd5e29c13e3392ca25da1 Mon Sep 17 00:00:00 2001 From: ngie Date: Wed, 31 May 2017 08:46:39 +0000 Subject: MFC r317632: Fix "make cscope-clean" when .OBJDIR already exists The cscope generated files are always put in .CURDIR . --- sys/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/Makefile b/sys/Makefile index fa8941e..263c3e9 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 -- cgit v1.1