dirdeps.mk (416ba5c74546f32a993436a99516d35008e9f384) | dirdeps.mk (dba62d8dcf57f741f505da18ca86302294deb6ef) |
---|---|
1# $FreeBSD$ | 1# $FreeBSD$ |
2# $Id: dirdeps.mk,v 1.54 2015/06/08 20:55:11 sjg Exp $ | 2# $Id: dirdeps.mk,v 1.55 2015/10/20 22:04:53 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: 10# 1. Redistributions of source code must retain the above copyright --- 227 unchanged lines hidden (view full) --- 238.if empty(DEP_$v) 239.undef DEP_$v 240.endif 241.endfor 242.else 243DEP_MACHINE := ${_DEP_TARGET_SPEC} 244.endif 245 | 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: 10# 1. Redistributions of source code must retain the above copyright --- 227 unchanged lines hidden (view full) --- 238.if empty(DEP_$v) 239.undef DEP_$v 240.endif 241.endfor 242.else 243DEP_MACHINE := ${_DEP_TARGET_SPEC} 244.endif 245 |
246.if ${MAKEFILE:T} == ${.PARSEFILE} && empty(DIRDEPS) && ${.TARGETS:Uall:M*/*} != "" 247# This little trick let's us do 248# 249# mk -f dirdeps.mk some/dir.${TARGET_SPEC} 250# 251all: 252${.TARGETS:Nall}: all 253DIRDEPS := ${.TARGETS:M*/*} 254# so that -DNO_DIRDEPS works 255DEP_RELDIR := ${DIRDEPS:R:[1]} 256# disable DIRDEPS_CACHE as it does not like this trick 257MK_DIRDEPS_CACHE = no 258.endif 259 260 |
|
246# pickup customizations 247# as below you can use !target(_DIRDEP_USE) to protect things 248# which should only be done once. 249.-include "local.dirdeps.mk" 250 251# the first time we are included the _DIRDEP_USE target will not be defined 252# we can use this as a clue to do initialization and other one time things. 253.if !target(_DIRDEP_USE) --- 399 unchanged lines hidden --- | 261# pickup customizations 262# as below you can use !target(_DIRDEP_USE) to protect things 263# which should only be done once. 264.-include "local.dirdeps.mk" 265 266# the first time we are included the _DIRDEP_USE target will not be defined 267# we can use this as a clue to do initialization and other one time things. 268.if !target(_DIRDEP_USE) --- 399 unchanged lines hidden --- |