From e12fd55de2c5ca019b86893c59ea8666e1380f19 Mon Sep 17 00:00:00 2001 From: ngie Date: Wed, 31 May 2017 08:47:09 +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 46c95d4..473940c 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -45,7 +45,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 # You need the devel/global and one of editor/emacs* ports for that. TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscope.files -- cgit v1.1