Lines Matching full:main
1 # $NetBSD: deptgt-main.mk,v 1.4 2022/01/23 21:48:59 rillig Exp $
3 # Tests for the special target .MAIN in dependency declarations, which defines
4 # the main target. This main target is built if no target has been specified
7 # The first target becomes the main target by default. It can be overridden
12 # This target is not the first to be defined, but it lists '.MAIN' as one of
13 # its sources. The word '.MAIN' only has a special meaning when it appears as
16 depsrc-main: .PHONY .MAIN
19 # This target is the first to be marked with '.MAIN', so it replaces the
20 # previous main target, which was 'all'.
21 .MAIN: real-main
22 real-main: .PHONY
25 # This target is marked with '.MAIN' but there already is a main target. The
26 # attribute '.MAIN' is thus ignored.
27 .MAIN: too-late
29 @echo 'This target comes too late, there is already a .MAIN target.'