1242818Ssjg# $FreeBSD: releng/11.0/targets/Makefile.inc 275339 2014-11-30 18:45:46Z sjg $
2242818Ssjg
3242818Ssjg.if !target(__${_this}__)
4242818Ssjg__${_this}__:
5242818Ssjg
6242818Ssjg_CURDIR ?= ${.CURDIR}
7242818Ssjg_OBJDIR ?= ${.OBJDIR}
8242818Ssjg
9275339Ssjg.if ${RELDIR:Mtargets/*} != "" || ${RELDIR} == "."
10242818Ssjg
11275339Ssjg.if ${.MAKE.LEVEL} == 0 && ${RELDIR:Mtargets/*} != ""
12242818Ssjg.if make(bootstrap*) || !exists(${_CURDIR}/${.MAKE.DEPENDFILE:T})
13242818Ssjg_bootstrap_dirdeps = yes
14242818Ssjg.else
15242818Ssjg# BUILD_AT_LEVEL0=no tells dirdeps.mk to use a sub-make for .CURDIR
16242818Ssjg# This is useful if we need to leverage DIRDEPS
17242818SsjgBUILD_AT_LEVEL0 = no
18242818Ssjg# this renders the rest harmless
19242818SsjgPKG_METHOD = no
20242818Ssjg.endif
21242818Ssjg.endif
22242818Ssjg
23242818Ssjg# The makefile in subdirs should set this to something useful
24242818Ssjg# the default should do nothing.
25242818SsjgPKG_METHOD ?= none
26242818Ssjg
27242818Ssjg.MAIN: all
28242818Ssjg
29242818Ssjg.if ${build-*:${M_L_TARGETS}} != ""
30242818Ssjg# just build the bits, skip packaging
31242818Ssjgall:
32242818SsjgSHIPDIR = no
33242818Ssjg.if ${RELDIR} != "."
34242818SsjgPKG_METHOD = no
35242818Ssjg.endif
36242818Ssjg.endif
37242818Ssjg
38242818Ssjg.if ${PKG_METHOD:Mno*} != ""
39242818Ssjgall: ${PKG_METHOD}
40242818Ssjg
41242818Ssjg# set this to "no" for manual control
42242818SsjgUPDATE_DEPENDFILE ?= yes
43242818Ssjg.endif
44242818Ssjg
45242818Ssjg.if ${UPDATE_DEPENDFILE:Uno} == "yes"
46242818Ssjg.include <meta.autodep.mk>
47242818Ssjg.endif
48242818Ssjg
49242818Ssjg# all the clever packaging methods go here....
50242818Ssjg
51242818Ssjg.endif					# level 0
52242818Ssjg
53242818Ssjg.endif					# _this
54