Lines Matching full:main
1 # $NetBSD: cond-func-make-main.mk,v 1.2 2021/04/04 10:13:09 rillig Exp $
8 # 1. The default main target is the first target in the given makefiles that
15 # override the default main target from above.
17 # 3. All sources of the first '.MAIN: sources' line. Any further .MAIN line
18 # is treated as if .MAIN were a regular name.
22 first-main-target:
25 # Even though the main-target would actually be made at this point, it is
27 .if make(first-main-target)
31 # Declaring a target via the .MAIN dependency adds it to the targets to be
33 # the line. This implies that several main targets can be set at the name
37 .MAIN: dot-main-target-1a dot-main-target-1b
39 .if !make(dot-main-target-1a)
42 .if !make(dot-main-target-1b)
46 dot-main-target-{1,2}{a,b}:
50 # anymore. ParseDependencyTargetSpecial therefore treats the .MAIN as if
51 # it were an ordinary target. Since .MAIN is not listed as a dependency
53 .if target(.MAIN)
56 .MAIN: dot-main-target-2a dot-main-target-2b
57 .if !target(.MAIN)
60 .if make(dot-main-target-2a)