pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk mk/ocaml.mk: don't assume MAKE_JOBS is defined



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3040ab3e3211
branches:  trunk
changeset: 336856:3040ab3e3211
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri Jul 26 09:59:27 2019 +0000

description:
mk/ocaml.mk: don't assume MAKE_JOBS is defined

diffstat:

 mk/ocaml.mk |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 06e35e25de3e -r 3040ab3e3211 mk/ocaml.mk
--- a/mk/ocaml.mk       Fri Jul 26 09:46:41 2019 +0000
+++ b/mk/ocaml.mk       Fri Jul 26 09:59:27 2019 +0000
@@ -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-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:
 .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
 



Home | Main Index | Thread Index | Old Index