summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-12-06 07:33:49 +0000
committerdim <dim@FreeBSD.org>2016-12-06 07:33:49 +0000
commit6f147568abe1b1d8948176698418bbd8d9a86bdd (patch)
tree35b6785ea09035e03345a20588f04a732b6ca1fd /Makefile.inc1
parent8e9cae4d58d498bf917d33fddd43f16b909c6c60 (diff)
downloadFreeBSD-src-6f147568abe1b1d8948176698418bbd8d9a86bdd.zip
FreeBSD-src-6f147568abe1b1d8948176698418bbd8d9a86bdd.tar.gz
MFC r309332:
Cleanup old debug dirs in delete-old-dirs target Any .debug or .symbols files under /usr/lib/debug which correspond to OLD_FILES entries in ObsoleteFiles.inc are also automatically cleaned up by the delete-old target. Make this also apply to any OLD_DIRS entries. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D8683
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc110
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 60d2754..f45ccb1 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2028,6 +2028,11 @@ delete-old-dirs:
elif [ -L "${DESTDIR}/$${dir}" ]; then \
echo "${DESTDIR}/$${dir} is a link, please remove everything manually."; \
fi; \
+ if [ -d "${DESTDIR}${DEBUGDIR}/$${dir}" ]; then \
+ rmdir -v "${DESTDIR}${DEBUGDIR}/$${dir}" || true; \
+ elif [ -L "${DESTDIR}${DEBUGDIR}/$${dir}" ]; then \
+ echo "${DESTDIR}${DEBUGDIR}/$${dir} is a link, please remove everything manually."; \
+ fi; \
done
@echo ">>> Old directories removed"
@@ -2042,6 +2047,11 @@ check-old-dirs:
elif [ -L "${DESTDIR}/$${dir}" ]; then \
echo "${DESTDIR}/$${dir} is a link, please remove everything manually."; \
fi; \
+ if [ -d "${DESTDIR}${DEBUGDIR}/$${dir}" ]; then \
+ echo "${DESTDIR}${DEBUGDIR}/$${dir}"; \
+ elif [ -L "${DESTDIR}${DEBUGDIR}/$${dir}" ]; then \
+ echo "${DESTDIR}${DEBUGDIR}/$${dir} is a link, please remove everything manually."; \
+ fi; \
done
delete-old: delete-old-files delete-old-dirs
OpenPOWER on IntegriCloud