summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-05-31 08:46:39 +0000
committerngie <ngie@FreeBSD.org>2017-05-31 08:46:39 +0000
commit29adcb7e1b1ef78233cfd5e29c13e3392ca25da1 (patch)
tree8ebfc22ebadb693e81443b214c2d522adbdac476
parent6d993c7628a384d13a900545ee5ff53e8a3eeb4b (diff)
downloadFreeBSD-src-29adcb7e1b1ef78233cfd5e29c13e3392ca25da1.zip
FreeBSD-src-29adcb7e1b1ef78233cfd5e29c13e3392ca25da1.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/Makefile3
1 files changed, 2 insertions, 1 deletions
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
OpenPOWER on IntegriCloud