meta.stage.mk (296637) | meta.stage.mk (297040) |
---|---|
1# $Id: meta.stage.mk,v 1.43 2016/02/24 18:46:32 sjg Exp $ | 1# $Id: meta.stage.mk,v 1.44 2016/03/16 18:21:23 sjg Exp $ |
2# 3# @(#) Copyright (c) 2011, Simon J. Gerraty 4# 5# This file is provided in the hope that it will 6# be of use. There is absolutely NO WARRANTY. 7# Permission to copy, redistribute or otherwise 8# use this file is hereby granted provided that 9# the above copyright notice and this notice are --- 43 unchanged lines hidden (view full) --- 53STAGE_DIR_FILTER = tA:@d@$${_STAGED_DIRS::+=$$d}$$d@ 54# convert _STAGED_DIRS into suitable filters 55GENDIRDEPS_FILTER += Nnot-empty-is-important \ 56 ${_STAGED_DIRS:O:u:M${OBJTOP}*:S,${OBJTOP}/,N,} \ 57 ${_STAGED_DIRS:O:u:M${_objroot}*:N${OBJTOP}*:S,${_objroot},,:C,^([^/]+)/(.*),N\2.\1,:S,${HOST_TARGET},.host,} 58 59LN_CP_SCRIPT = LnCp() { \ 60 rm -f $$2 2> /dev/null; \ | 2# 3# @(#) Copyright (c) 2011, Simon J. Gerraty 4# 5# This file is provided in the hope that it will 6# be of use. There is absolutely NO WARRANTY. 7# Permission to copy, redistribute or otherwise 8# use this file is hereby granted provided that 9# the above copyright notice and this notice are --- 43 unchanged lines hidden (view full) --- 53STAGE_DIR_FILTER = tA:@d@$${_STAGED_DIRS::+=$$d}$$d@ 54# convert _STAGED_DIRS into suitable filters 55GENDIRDEPS_FILTER += Nnot-empty-is-important \ 56 ${_STAGED_DIRS:O:u:M${OBJTOP}*:S,${OBJTOP}/,N,} \ 57 ${_STAGED_DIRS:O:u:M${_objroot}*:N${OBJTOP}*:S,${_objroot},,:C,^([^/]+)/(.*),N\2.\1,:S,${HOST_TARGET},.host,} 58 59LN_CP_SCRIPT = LnCp() { \ 60 rm -f $$2 2> /dev/null; \ |
61 ln $$1 $$2 2> /dev/null || \ | 61 { [ -z "$$mode" ] && ln $$1 $$2 2> /dev/null; } || \ |
62 cp -p $$1 $$2; } 63 64# a staging conflict should cause an error 65# a warning is handy when bootstapping different options. 66STAGE_CONFLICT?= ERROR 67.if ${STAGE_CONFLICT:tl} == "error" 68STAGE_CONFLICT_ACTION= exit 1; 69.else --- 223 unchanged lines hidden --- | 62 cp -p $$1 $$2; } 63 64# a staging conflict should cause an error 65# a warning is handy when bootstapping different options. 66STAGE_CONFLICT?= ERROR 67.if ${STAGE_CONFLICT:tl} == "error" 68STAGE_CONFLICT_ACTION= exit 1; 69.else --- 223 unchanged lines hidden --- |