| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.210 2021/05/26 20:19:15 christos Exp $ | | 1 | # $NetBSD: Makefile,v 1.211 2021/05/27 08:41:35 cjep Exp $ |
2 | | | 2 | |
3 | .include <bsd.own.mk> | | 3 | .include <bsd.own.mk> |
4 | .include <bsd.endian.mk> | | 4 | .include <bsd.endian.mk> |
5 | | | 5 | |
6 | # Make sure that the ordered build/install processing applies when using | | 6 | # Make sure that the ordered build/install processing applies when using |
7 | # plain make. | | 7 | # plain make. |
8 | .MAIN: build_install | | 8 | .MAIN: build_install |
9 | | | 9 | |
10 | # TOOLDIR must be valid, unless MKTOOLS=no | | 10 | # TOOLDIR must be valid, unless MKTOOLS=no |
11 | .if ${MKTOOLS:Uyes} != "no" | | 11 | .if ${MKTOOLS:Uyes} != "no" |
12 | .if "${TOOLDIR}" == "" | | 12 | .if "${TOOLDIR}" == "" |
13 | .error "TOOLDIR is undefined or empty" | | 13 | .error "TOOLDIR is undefined or empty" |
14 | .elif "${TOOLDIR:tW:M/*}" == "" | | 14 | .elif "${TOOLDIR:tW:M/*}" == "" |
| @@ -70,33 +70,37 @@ LINT_BITS= | | | @@ -70,33 +70,37 @@ LINT_BITS= |
70 | .if ${MKLINT} != "no" | | 70 | .if ${MKLINT} != "no" |
71 | LINT_BITS= lint lint2 | | 71 | LINT_BITS= lint lint2 |
72 | .endif | | 72 | .endif |
73 | | | 73 | |
74 | # All of host-mkdep, compat, and binstall are needed before anything | | 74 | # All of host-mkdep, compat, and binstall are needed before anything |
75 | # else. Within this group, they must be built in a specific order, and | | 75 | # else. Within this group, they must be built in a specific order, and |
76 | # all of them must be built before any of them is installed. They may | | 76 | # all of them must be built before any of them is installed. They may |
77 | # be installed in any order. This can't be expressed using the .WAIT | | 77 | # be installed in any order. This can't be expressed using the .WAIT |
78 | # notation inside the SUBDIR list. | | 78 | # notation inside the SUBDIR list. |
79 | # | | 79 | # |
80 | # XXX .ORDER does not work when multiple targets are passed on the | | 80 | # XXX .ORDER does not work when multiple targets are passed on the |
81 | # make command line without "-j", so use dependencies in addition to .ORDER. | | 81 | # make command line without "-j", so use dependencies in addition to .ORDER. |
82 | # | | 82 | # |
83 | .ORDER: dependall-host-mkdep dependall-compat dependall-binstall | | 83 | .ORDER: dependall-host-mkdep dependall-compat dependall-binstall \ |
| | | 84 | dependall-date |
84 | .if make(dependall-host-mkdep) && make(dependall-compat) | | 85 | .if make(dependall-host-mkdep) && make(dependall-compat) |
85 | dependall-compat: dependall-host-mkdep | | 86 | dependall-compat: dependall-host-mkdep |
86 | .endif | | 87 | .endif |
87 | .if make(dependall-compat) && make(dependall-binstall) | | 88 | .if make(dependall-compat) && make(dependall-binstall) |
88 | dependall-binstall: dependall-compat | | 89 | dependall-binstall: dependall-compat |
89 | .endif | | 90 | .endif |
| | | 91 | .if make(dependall-date) |
| | | 92 | dependall-date: dependall-host-mkdep dependall-compat |
| | | 93 | .endif |
90 | | | 94 | |
91 | # Dependencies in SUBDIR below ordered to maximize parallel ability. | | 95 | # Dependencies in SUBDIR below ordered to maximize parallel ability. |
92 | # See above for special treatment for host-mkdep, compat, and binstall. | | 96 | # See above for special treatment for host-mkdep, compat, and binstall. |
93 | # | | 97 | # |
94 | SUBDIR= host-mkdep compat binstall date \ | | 98 | SUBDIR= host-mkdep compat binstall date \ |
95 | .WAIT mktemp .WAIT sed .WAIT genassym | | 99 | .WAIT mktemp .WAIT sed .WAIT genassym |
96 | .if ${TOOLS_BUILDRUMP} == "no" | | 100 | .if ${TOOLS_BUILDRUMP} == "no" |
97 | SUBDIR+= cap_mkdb crunchgen ctags gencat hexdump \ | | 101 | SUBDIR+= cap_mkdb crunchgen ctags gencat hexdump \ |
98 | ${LINT_BITS} \ | | 102 | ${LINT_BITS} \ |
99 | makewhatis mtree nbperf .WAIT uudecode | | 103 | makewhatis mtree nbperf .WAIT uudecode |
100 | .endif | | 104 | .endif |
101 | | | 105 | |
102 | SUBDIR+= cat rpcgen join lorder m4 mkdep tsort .WAIT yacc .WAIT awk .WAIT lex | | 106 | SUBDIR+= cat rpcgen join lorder m4 mkdep tsort .WAIT yacc .WAIT awk .WAIT lex |