| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: build.mk,v 1.30 2020/01/19 18:20:46 maya Exp $ | | 1 | # $NetBSD: build.mk,v 1.31 2020/02/18 16:10:37 maya Exp $ |
2 | # | | 2 | # |
3 | # This file defines what happens in the build phase, excluding the | | 3 | # This file defines what happens in the build phase, excluding the |
4 | # self-test, which is defined in test.mk. | | 4 | # self-test, which is defined in test.mk. |
5 | # | | 5 | # |
6 | # Public targets for developers: | | 6 | # Public targets for developers: |
7 | # | | 7 | # |
8 | # build-env: | | 8 | # build-env: |
9 | # Runs an interactive shell (BUILD_ENV_SHELL) in the environment | | 9 | # Runs an interactive shell (BUILD_ENV_SHELL) in the environment |
10 | # that is used for building the package. | | 10 | # that is used for building the package. |
11 | # | | 11 | # |
12 | # Package-settable variables: | | 12 | # Package-settable variables: |
13 | # | | 13 | # |
14 | # BUILD_MAKE_FLAGS is the list of arguments that is passed to the make | | 14 | # BUILD_MAKE_FLAGS is the list of arguments that is passed to the make |
| @@ -53,26 +53,28 @@ BUILD_MAKE_CMD= \ | | | @@ -53,26 +53,28 @@ BUILD_MAKE_CMD= \ |
53 | ${MAKE_PROGRAM} ${_MAKE_JOBS} \ | | 53 | ${MAKE_PROGRAM} ${_MAKE_JOBS} \ |
54 | ${MAKE_FLAGS} ${BUILD_MAKE_FLAGS} \ | | 54 | ${MAKE_FLAGS} ${BUILD_MAKE_FLAGS} \ |
55 | -f ${MAKE_FILE} | | 55 | -f ${MAKE_FILE} |
56 | | | 56 | |
57 | .if defined(MAKE_JOBS_SAFE) && !empty(MAKE_JOBS_SAFE:M[nN][oO]) | | 57 | .if defined(MAKE_JOBS_SAFE) && !empty(MAKE_JOBS_SAFE:M[nN][oO]) |
58 | _MAKE_JOBS= # nothing | | 58 | _MAKE_JOBS= # nothing |
59 | _MAKE_JOBS_N= 1 | | 59 | _MAKE_JOBS_N= 1 |
60 | .elif defined(MAKE_JOBS.${PKGPATH}) | | 60 | .elif defined(MAKE_JOBS.${PKGPATH}) |
61 | _MAKE_JOBS= -j${MAKE_JOBS.${PKGPATH}} | | 61 | _MAKE_JOBS= -j${MAKE_JOBS.${PKGPATH}} |
62 | _MAKE_JOBS_N= ${MAKE_JOBS.${PKGPATH}} | | 62 | _MAKE_JOBS_N= ${MAKE_JOBS.${PKGPATH}} |
63 | .elif defined(MAKE_JOBS) | | 63 | .elif defined(MAKE_JOBS) |
64 | _MAKE_JOBS= -j${MAKE_JOBS} | | 64 | _MAKE_JOBS= -j${MAKE_JOBS} |
65 | _MAKE_JOBS_N= ${MAKE_JOBS} | | 65 | _MAKE_JOBS_N= ${MAKE_JOBS} |
| | | 66 | .else |
| | | 67 | _MAKE_JOBS_N= 1 |
66 | .endif | | 68 | .endif |
67 | | | 69 | |
68 | ###################################################################### | | 70 | ###################################################################### |
69 | ### build (PUBLIC) | | 71 | ### build (PUBLIC) |
70 | ###################################################################### | | 72 | ###################################################################### |
71 | ### build is a public target to build the sources from the package. | | 73 | ### build is a public target to build the sources from the package. |
72 | ### | | 74 | ### |
73 | _BUILD_TARGETS+= check-vulnerable | | 75 | _BUILD_TARGETS+= check-vulnerable |
74 | _BUILD_TARGETS+= configure | | 76 | _BUILD_TARGETS+= configure |
75 | _BUILD_TARGETS+= acquire-build-lock | | 77 | _BUILD_TARGETS+= acquire-build-lock |
76 | _BUILD_TARGETS+= ${_COOKIE.build} | | 78 | _BUILD_TARGETS+= ${_COOKIE.build} |
77 | _BUILD_TARGETS+= release-build-lock | | 79 | _BUILD_TARGETS+= release-build-lock |
78 | .if ${_USE_NEW_PKGINSTALL:Uno} == "no" | | 80 | .if ${_USE_NEW_PKGINSTALL:Uno} == "no" |