From 2a8176cb6119c5ce0644895359b375a255e6facf Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Wed, 8 Nov 2017 18:02:01 +0000 Subject: [PATCH] META_MODE: Bmake 20171028 in r325340 simplifies the meta filename. Now if the meta file is in the objdir, the objdir is stripped away from the meta filename. Sponsored by: Dell EMC Isilon --- share/mk/bsd.dep.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index c6bf68b067f..2ae1266318f 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -233,10 +233,14 @@ afterdepend: beforedepend # mimicing what bmake's meta_name() does and adding in the full path # as well to ensure that the expected meta file is read. .if ${__obj:M*/*} +.if ${MAKE_VERSION} < 20171028 _meta_obj= ${.OBJDIR:C,/,_,g}_${__obj:C,/,_,g}.meta .else +_meta_obj= ${__obj:C,/,_,g}.meta +.endif # ${MAKE_VERSION} < 20171028 +.else _meta_obj= ${__obj}.meta -.endif +.endif # ${__obj:M*/*} _dep_obj= ${DEPENDFILE}.${__obj:${DEPEND_FILTER}} .if defined(_meta_filemon) _depfile= ${.OBJDIR}/${_meta_obj}