From e69a8e6b9a2ec1fe26f4213b89531a5debabf312 Mon Sep 17 00:00:00 2001 From: rillig Date: Tue, 7 May 2019 19:36:43 +0000 Subject: mk: allow "bmake clean depends" as shortcut When "bmake clean depends" was called for a package where the various cookie files already existed, these would enable different rules than a clean package directory. Since "bmake clean" deletes all the cookie files before "bmake depends" starts, in these combined command lines the cookie files must be treated as absent. --- mk/wrapper/bsd.wrapper.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mk/wrapper') diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk index c51c40729a3..1b620bde08d 100644 --- a/mk/wrapper/bsd.wrapper.mk +++ b/mk/wrapper/bsd.wrapper.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.wrapper.mk,v 1.100 2018/08/22 20:48:37 maya Exp $ +# $NetBSD: bsd.wrapper.mk,v 1.101 2019/05/07 19:36:44 rillig Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -54,7 +54,7 @@ PREPEND_PATH+= ${WRAPPER_BINDIR} ### ### BEGIN: after the barrier ### -.if exists(${_COOKIE.barrier}) +.if exists(${_COOKIE.barrier}) && !${_CLEANING} _WRAPPER_DEBUG?= no CONFIGURE_ENV+= WRAPPER_DEBUG=${_WRAPPER_DEBUG:Q} @@ -708,7 +708,7 @@ _COOKIE.wrapper= ${WRKDIR}/.wrapper_done .PHONY: wrapper .if !target(wrapper) -. if exists(${_COOKIE.wrapper}) +. if exists(${_COOKIE.wrapper}) && !${_CLEANING} wrapper: @${DO_NADA} . elif defined(_PKGSRC_BARRIER) @@ -722,7 +722,7 @@ wrapper: barrier acquire-wrapper-lock: acquire-lock release-wrapper-lock: release-lock -.if exists(${_COOKIE.wrapper}) +.if exists(${_COOKIE.wrapper}) && !${_CLEANING} ${_COOKIE.wrapper}: @${DO_NADA} .else -- cgit v1.2.3