pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   pho
Date:           Sun Jan 19 23:45:06 UTC 2020

Modified Files:
        pkgsrc/mk: haskell.mk

Log Message:
Use _MAKE_JOBS_N defined in build/build.mk


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/mk/haskell.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/haskell.mk
diff -u pkgsrc/mk/haskell.mk:1.13 pkgsrc/mk/haskell.mk:1.14
--- pkgsrc/mk/haskell.mk:1.13   Sat Jan 18 01:39:01 2020
+++ pkgsrc/mk/haskell.mk        Sun Jan 19 23:45:06 2020
@@ -1,4 +1,4 @@
-# $NetBSD: haskell.mk,v 1.13 2020/01/18 01:39:01 pho Exp $
+# $NetBSD: haskell.mk,v 1.14 2020/01/19 23:45:06 pho Exp $
 #
 # This Makefile fragment handles Haskell Cabal packages.
 # See: http://www.haskell.org/cabal/
@@ -207,17 +207,6 @@ CONFIGURE_ARGS+=   --with-haddock=${BUILDL
 # Optimization
 CONFIGURE_ARGS+=       -O${HASKELL_OPTIMIZATION_LEVEL}
 
-# Parallelization: the definition of this variable is exactly the same
-# as that of _MAKE_JOBS in mk/build/build.mk, but since it's an
-# internal variable we don't want to reuse it here.
-.if defined(MAKE_JOBS_SAFE) && !empty(MAKE_JOBS_SAFE:M[nN][oO])
-_HASKELL_BUILD_JOBS=   # nothing
-.elif defined(MAKE_JOBS.${PKGPATH})
-_HASKELL_BUILD_JOBS=   -j${MAKE_JOBS.${PKGPATH}}
-.elif defined(MAKE_JOBS)
-_HASKELL_BUILD_JOBS=   -j${MAKE_JOBS}
-.endif
-
 # Starting from GHC 7.10 (or 7.8?), packages are installed in
 # directories with a hashed name so we can no longer predict the
 # contents of PLIST.
@@ -253,10 +242,10 @@ do-configure:
                ${SETENV} ${CONFIGURE_ENV} \
                        ./Setup configure ${PKG_VERBOSE:D-v} ${CONFIGURE_ARGS}
 
-# Define build target.
+# Define build target. _MAKE_JOBS_N is defined in build/build.mk
 do-build:
        ${RUN}cd ${WRKSRC:Q} && \
-               ./Setup build ${PKG_VERBOSE:D-v} ${_HASKELL_BUILD_JOBS}
+               ./Setup build ${PKG_VERBOSE:D-v} -j${_MAKE_JOBS_N}
 .if ${HASKELL_ENABLE_HADDOCK_DOCUMENTATION} == "yes"
        ${RUN}cd ${WRKSRC:Q} && \
                ./Setup haddock ${PKG_VERBOSE:D-v}



Home | Main Index | Thread Index | Old Index