summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2020-03-30 20:20:15 +0000
committerEd Maste <emaste@FreeBSD.org>2020-03-30 20:20:15 +0000
commit4dad87a498feba0148054bebe83d0f4f1213b10a (patch)
treee493acee74576cd7aa70d8ac5d562caee78c371f /Makefile.inc1
parent86cfa7e70b2bde87135a97fa184474d391282f12 (diff)
downloadsrc-test-4dad87a498feba0148054bebe83d0f4f1213b10a.tar.gz
src-test-4dad87a498feba0148054bebe83d0f4f1213b10a.zip
add shell script for stale dependency hack
It's rather awkward to debug issues with the dependency cleanup hacks when implemented via make. Add a cleanup shell script and move the libomp hack there as an initial example. Reviewed by: brooks MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24228
Notes
Notes: svn path=/head/; revision=359461
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc111
1 files changed, 1 insertions, 10 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 4761c138a7e93..102949333ada6 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -924,17 +924,8 @@ _sanity_check: .PHONY .MAKE
# replacing generated files. Handle these cases here in an ad-hoc fashion.
_cleanobj_fast_depend_hack: .PHONY
@echo ">>> Deleting stale dependencies...";
+ sh ${.CURDIR}/tools/build/depend-cleanup.sh ${OBJTOP}
# Date SVN Rev Syscalls/Changes
-# 20200310 r358851 rename of openmp's ittnotify_static.c to .cpp
-.for f in ittnotify_static
- @if [ -e "${OBJTOP}/lib/libomp/.depend.${f}.pico" ] && \
- egrep -qw '${f}\.c' ${OBJTOP}/lib/libomp/.depend.${f}.pico; then \
- echo "Removing stale dependencies for ${f}"; \
- rm -f ${OBJTOP}/lib/libomp/.depend.${f}.* \
- ${OBJTOP}/obj-lib32/lib/libomp/.depend.${f}.* \
- ${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; \
- fi
-.endfor
# Syscall stubs rewritten in C and obsolete MD assembly implementations
# 20191009 r353340 removal of opensolaris_atomic.S (also r353381)
.if ${MACHINE} != i386