diff options
author | tnn <tnn@pkgsrc.org> | 2019-07-26 09:59:27 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2019-07-26 09:59:27 +0000 |
commit | 8e454a354deb73af9572b49fbb45ac8303481ac3 (patch) | |
tree | 7a4fb3eae6d2e29e186da5c07683daa20b821c86 /mk | |
parent | 664bd493d94be004631532b543e192a97f7b4c87 (diff) | |
download | pkgsrc-8e454a354deb73af9572b49fbb45ac8303481ac3.tar.gz |
mk/ocaml.mk: don't assume MAKE_JOBS is defined
Diffstat (limited to 'mk')
-rw-r--r-- | mk/ocaml.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/ocaml.mk b/mk/ocaml.mk index e287042a352..6c326289e57 100644 --- a/mk/ocaml.mk +++ b/mk/ocaml.mk @@ -1,4 +1,4 @@ -# $NetBSD: ocaml.mk,v 1.25 2019/07/15 09:36:26 jaapb Exp $ +# $NetBSD: ocaml.mk,v 1.26 2019/07/26 09:59:27 tnn Exp $ # # This Makefile fragment handles the common variables used by OCaml packages. # @@ -270,12 +270,12 @@ do-install: do-build: .if !empty(JBUILDER_BUILD_PACKAGES) ${RUN} ${_ULIMIT_CMD} \ - cd ${WRKSRC} && jbuilder build -j ${MAKE_JOBS} \ + cd ${WRKSRC} && jbuilder build -j ${MAKE_JOBS:U1} \ ${JBUILDER_BUILD_FLAGS} -p ${JBUILDER_BUILD_PACKAGES:ts,} \ ${JBUILDER_BUILD_TARGETS} .else ${RUN} ${_ULIMIT_CMD} \ - cd ${WRKSRC} && jbuilder build -j ${MAKE_JOBS} \ + cd ${WRKSRC} && jbuilder build -j ${MAKE_JOBS:U1} \ ${JBUILDER_BUILD_FLAGS} ${JBUILDER_BUILD_TARGETS} .endif @@ -289,12 +289,12 @@ do-build: do-build: .if !empty(DUNE_BUILD_PACKAGES) ${RUN} ${_ULIMIT_CMD} \ - cd ${WRKSRC} && dune build -j ${MAKE_JOBS} \ + cd ${WRKSRC} && dune build -j ${MAKE_JOBS:U1} \ ${DUNE_BUILD_FLAGS} -p ${DUNE_BUILD_PACKAGES:ts,} \ ${DUNE_BUILD_TARGETS} .else ${RUN} ${_ULIMIT_CMD} \ - cd ${WRKSRC} && dune build --profile release -j ${MAKE_JOBS} \ + cd ${WRKSRC} && dune build --profile release -j ${MAKE_JOBS:U1} \ ${DUNE_BUILD_FLAGS} ${DUNE_BUILD_TARGETS} .endif |