]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - targets/Makefile.inc
OpenSSL: update to 3.0.11
[FreeBSD/FreeBSD.git] / targets / Makefile.inc
1
2 .if !target(__${_this}__)
3 __${_this}__:
4
5 _CURDIR ?= ${.CURDIR}
6 _OBJDIR ?= ${.OBJDIR}
7
8 .if ${RELDIR:Mtargets/*} != "" || ${RELDIR} == "."
9
10 .if ${.MAKE.LEVEL} == 0 && ${RELDIR:Mtargets/*} != ""
11 .if make(bootstrap*) || !exists(${_CURDIR}/${.MAKE.DEPENDFILE:T})
12 _bootstrap_dirdeps = yes
13 .else
14 # BUILD_AT_LEVEL0=no tells dirdeps.mk to use a sub-make for .CURDIR
15 # This is useful if we need to leverage DIRDEPS
16 BUILD_AT_LEVEL0 = no
17 # this renders the rest harmless
18 PKG_METHOD = no
19 .endif
20 .endif
21
22 .MAIN: all
23
24 # The makefile in subdirs should set this to something useful
25 # the default should do nothing.
26 PKG_METHOD ?= none
27 none:
28
29 .if ${build-*:${M_L_TARGETS}} != ""
30 # just build the bits, skip packaging
31 all:
32 SHIPDIR = no
33 .if ${RELDIR} != "."
34 PKG_METHOD = no
35 .endif
36 .endif
37
38 .if ${PKG_METHOD:Mno*} != ""
39 all: ${PKG_METHOD}
40
41 # set this to "no" for manual control
42 UPDATE_DEPENDFILE ?= yes
43 .endif
44
45 .if ${UPDATE_DEPENDFILE:Uno} == "yes"
46 .include <meta.autodep.mk>
47 .endif
48
49 # all the clever packaging methods go here....
50
51 .endif                                  # level 0
52
53 .endif                                  # _this