File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 15
15
# You should have received a copy of the GNU General Public License
16
16
# along with csdiff. If not, see <http://www.gnu.org/licenses/>.
17
17
18
+ NUM_CPU ?= $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
19
+
18
20
CMAKE ?= cmake
19
- CTEST ?= ctest
21
+ CTEST ?= ctest -j $( NUM_CPU )
20
22
21
23
CMAKE_BUILD_TYPE ?= RelWithDebInfo
22
24
@@ -25,7 +27,7 @@ CMAKE_BUILD_TYPE ?= RelWithDebInfo
25
27
all : version.cc
26
28
mkdir -p csdiff_build
27
29
cd csdiff_build && $(CMAKE ) -D ' CMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE)' ..
28
- $(MAKE ) -C csdiff_build
30
+ $(MAKE ) -C csdiff_build -j $( NUM_CPU )
29
31
30
32
fast : version.cc
31
33
$(MAKE ) -sC csdiff_build
Original file line number Diff line number Diff line change 20
20
SELF=" $0 "
21
21
22
22
PKG=" csdiff"
23
- : ${MAKEOPTS=-j9}
24
23
25
24
die () {
26
25
echo " $SELF : error: $1 " >&2
@@ -61,9 +60,7 @@ cd "$TMP" >/dev/null || die "mktemp failed"
61
60
# clone the repository
62
61
git clone " $REPO " " $PKG " || die " git clone failed"
63
62
cd " $PKG " || die " git clone failed"
64
-
65
- make $MAKEOPTS distcheck CTEST=" ctest $MAKEOPTS " \
66
- || die " 'make distcheck' has failed"
63
+ make distcheck || die " 'make distcheck' has failed"
67
64
68
65
SRC_TAR=" ${NV} .tar"
69
66
SRC=" ${SRC_TAR} .xz"
You can’t perform that action at this time.
0 commit comments