diff options
author | ngie <ngie@FreeBSD.org> | 2017-05-31 08:47:09 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-05-31 08:47:09 +0000 |
commit | e12fd55de2c5ca019b86893c59ea8666e1380f19 (patch) | |
tree | 01762a09c870b4d9c6ac659e683d21220a317fc8 | |
parent | 264ed1a46294153663f97a7c6f554c5ee16a9159 (diff) | |
download | FreeBSD-src-e12fd55de2c5ca019b86893c59ea8666e1380f19.zip FreeBSD-src-e12fd55de2c5ca019b86893c59ea8666e1380f19.tar.gz |
MFC r317632:
Fix "make cscope-clean" when .OBJDIR already exists
The cscope generated files are always put in .CURDIR .
-rw-r--r-- | sys/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
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 |