gendirdeps.mk (296637) | gendirdeps.mk (298225) |
---|---|
1# $FreeBSD: head/share/mk/gendirdeps.mk 296637 2016-03-11 01:35:39Z sjg $ | 1# $FreeBSD: head/share/mk/gendirdeps.mk 298225 2016-04-18 20:56:21Z sjg $ |
2# $Id: gendirdeps.mk,v 1.30 2016/02/27 00:20:39 sjg Exp $ 3 4# Copyright (c) 2010-2013, Juniper Networks, Inc. 5# All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions 9# are met: --- 68 unchanged lines hidden (view full) --- 78# yes, I mean :U with no value 79_DIRDEPS := ${DIRDEPS:U:O:u} 80.endif 81 82META_FILES := ${META_FILES:T:O:u} 83.export META_FILES 84 85# pickup customizations | 2# $Id: gendirdeps.mk,v 1.30 2016/02/27 00:20:39 sjg Exp $ 3 4# Copyright (c) 2010-2013, Juniper Networks, Inc. 5# All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions 9# are met: --- 68 unchanged lines hidden (view full) --- 78# yes, I mean :U with no value 79_DIRDEPS := ${DIRDEPS:U:O:u} 80.endif 81 82META_FILES := ${META_FILES:T:O:u} 83.export META_FILES 84 85# pickup customizations |
86.-include "local.gendirdeps.mk" | 86.-include <local.gendirdeps.mk> |
87 88# these are actually prefixes that we'll skip 89# they should all be absolute paths 90SKIP_GENDIRDEPS ?= 91.if !empty(SKIP_GENDIRDEPS) 92_skip_gendirdeps = egrep -v '^(${SKIP_GENDIRDEPS:O:u:ts|})' | 93.else 94_skip_gendirdeps = --- 39 unchanged lines hidden (view full) --- 134META2DEPS_CMD ?= ${META2DEPS} 135.endif 136 137.if ${TARGET_OBJ_SPEC:U${MACHINE}} != ${MACHINE} 138META2DEPS_CMD += -T ${TARGET_OBJ_SPEC} 139.endif 140META2DEPS_CMD += \ 141 -R ${RELDIR} -H ${HOST_TARGET} \ | 87 88# these are actually prefixes that we'll skip 89# they should all be absolute paths 90SKIP_GENDIRDEPS ?= 91.if !empty(SKIP_GENDIRDEPS) 92_skip_gendirdeps = egrep -v '^(${SKIP_GENDIRDEPS:O:u:ts|})' | 93.else 94_skip_gendirdeps = --- 39 unchanged lines hidden (view full) --- 134META2DEPS_CMD ?= ${META2DEPS} 135.endif 136 137.if ${TARGET_OBJ_SPEC:U${MACHINE}} != ${MACHINE} 138META2DEPS_CMD += -T ${TARGET_OBJ_SPEC} 139.endif 140META2DEPS_CMD += \ 141 -R ${RELDIR} -H ${HOST_TARGET} \ |
142 ${M2D_OBJROOTS:O:u:@o@-O $o@} | 142 ${M2D_OBJROOTS:O:u:@o@-O $o@} \ 143 ${M2D_EXCLUDES:O:u:@o@-X $o@} \ |
143 144 145M2D_OBJROOTS += ${OBJTOP} ${_OBJROOT} ${_objroot} 146.if defined(SB_OBJROOT) 147M2D_OBJROOTS += ${SB_OBJROOT} 148.endif 149.if ${.MAKE.DEPENDFILE_PREFERENCE:U${.MAKE.DEPENDFILE}:M*.${MACHINE}} == "" 150# meta2deps.py only groks objroot --- 100 unchanged lines hidden (view full) --- 251DIRDEPS += \ 252 ${dirdep_list:M${RELDIR}/*:@d@${.MAKE.MAKEFILE_PREFERENCE:@m@${exists(${SRCTOP}/$d/$m):?$d:${exists(${SRCTOP}/${d:R}/$m):?$d:}}@}@} \ 253 ${qualdir_list:M${RELDIR}/*:@d@${.MAKE.MAKEFILE_PREFERENCE:@m@${exists(${SRCTOP}/${d:R}/$m):?$d:}@}@} 254 255DIRDEPS := ${DIRDEPS:${GENDIRDEPS_FILTER:UNno:ts:}:C,//+,/,g:O:u} 256 257.if ${DEBUG_GENDIRDEPS:Uno:@x@${RELDIR:M$x}@} != "" 258.info ${RELDIR}: M2D_OBJROOTS=${M2D_OBJROOTS} | 144 145 146M2D_OBJROOTS += ${OBJTOP} ${_OBJROOT} ${_objroot} 147.if defined(SB_OBJROOT) 148M2D_OBJROOTS += ${SB_OBJROOT} 149.endif 150.if ${.MAKE.DEPENDFILE_PREFERENCE:U${.MAKE.DEPENDFILE}:M*.${MACHINE}} == "" 151# meta2deps.py only groks objroot --- 100 unchanged lines hidden (view full) --- 252DIRDEPS += \ 253 ${dirdep_list:M${RELDIR}/*:@d@${.MAKE.MAKEFILE_PREFERENCE:@m@${exists(${SRCTOP}/$d/$m):?$d:${exists(${SRCTOP}/${d:R}/$m):?$d:}}@}@} \ 254 ${qualdir_list:M${RELDIR}/*:@d@${.MAKE.MAKEFILE_PREFERENCE:@m@${exists(${SRCTOP}/${d:R}/$m):?$d:}@}@} 255 256DIRDEPS := ${DIRDEPS:${GENDIRDEPS_FILTER:UNno:ts:}:C,//+,/,g:O:u} 257 258.if ${DEBUG_GENDIRDEPS:Uno:@x@${RELDIR:M$x}@} != "" 259.info ${RELDIR}: M2D_OBJROOTS=${M2D_OBJROOTS} |
260.info ${RELDIR}: M2D_EXCLUDES=${M2D_EXCLUDES} |
|
259.info ${RELDIR}: dir_list='${dir_list}' 260.info ${RELDIR}: dpadd_dir_list='${dpadd_dir_list}' 261.info ${RELDIR}: dirdep_list='${dirdep_list}' 262.info ${RELDIR}: qualdir_list='${qualdir_list}' 263.info ${RELDIR}: SKIP_GENDIRDEPS='${SKIP_GENDIRDEPS}' 264.info ${RELDIR}: GENDIRDEPS_FILTER='${GENDIRDEPS_FILTER}' 265.info ${RELDIR}: FORCE_DPADD='${DPADD}' 266.info ${RELDIR}: DIRDEPS='${DIRDEPS}' --- 81 unchanged lines hidden --- | 261.info ${RELDIR}: dir_list='${dir_list}' 262.info ${RELDIR}: dpadd_dir_list='${dpadd_dir_list}' 263.info ${RELDIR}: dirdep_list='${dirdep_list}' 264.info ${RELDIR}: qualdir_list='${qualdir_list}' 265.info ${RELDIR}: SKIP_GENDIRDEPS='${SKIP_GENDIRDEPS}' 266.info ${RELDIR}: GENDIRDEPS_FILTER='${GENDIRDEPS_FILTER}' 267.info ${RELDIR}: FORCE_DPADD='${DPADD}' 268.info ${RELDIR}: DIRDEPS='${DIRDEPS}' --- 81 unchanged lines hidden --- |