ng_mppc(4): Bring netgraph(3) MPPC compression support.
[freebsd-src.git] / targets / Makefile.inc
blob2dc3b8155824c789dbb2f69c2e6398ff40860f8b
1 # $FreeBSD$
3 .if !target(__${_this}__)
4 __${_this}__:
6 _CURDIR ?= ${.CURDIR}
7 _OBJDIR ?= ${.OBJDIR}
9 .if ${RELDIR:Mtargets/*} != "" || ${RELDIR} == "."
11 .if ${.MAKE.LEVEL} == 0 && ${RELDIR:Mtargets/*} != ""
12 .if make(bootstrap*) || !exists(${_CURDIR}/${.MAKE.DEPENDFILE:T})
13 _bootstrap_dirdeps = yes
14 .else
15 # BUILD_AT_LEVEL0=no tells dirdeps.mk to use a sub-make for .CURDIR
16 # This is useful if we need to leverage DIRDEPS
17 BUILD_AT_LEVEL0 = no
18 # this renders the rest harmless
19 PKG_METHOD = no
20 .endif
21 .endif
23 # The makefile in subdirs should set this to something useful
24 # the default should do nothing.
25 PKG_METHOD ?= none
27 .MAIN: all
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
38 .if ${PKG_METHOD:Mno*} != ""
39 all: ${PKG_METHOD}
41 # set this to "no" for manual control
42 UPDATE_DEPENDFILE ?= yes
43 .endif
45 .if ${UPDATE_DEPENDFILE:Uno} == "yes"
46 .include <meta.autodep.mk>
47 .endif
49 # all the clever packaging methods go here....
51 .endif                                  # level 0
53 .endif                                  # _this