Skip to content

Commit e50ce83

Browse files
committed
-
1 parent 75389a4 commit e50ce83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
CPUS := $(shell grep -c ^processor /proc/cpuinfo)
1+
CPUS := $(shell nproc)
22

33
all: build_debug
44
true
55

66
build_debug: box2d premake
77
.build/premake5 gmake --cc=clang
8-
make -C .build config=debug_x86_64 -j $$(($(CPUS)/2))
8+
make -C .build config=debug_x86_64 -j$(CPUS)
99
test -d bin || mkdir bin
1010
cp .build/bin/x86_64/Debug/carnage3d bin/carnage3d-debug
1111

1212
build_release: box2d premake
1313
.build/premake5 gmake --cc=clang
14-
make -C .build config=release_x86_64 -j $$(($(CPUS)/2))
14+
make -C .build config=release_x86_64 -j$(CPUS)
1515
test -d bin || mkdir bin
1616
cp .build/bin/x86_64/Release/carnage3d bin/carnage3d-release
1717

@@ -43,7 +43,7 @@ premake: builddir
4343

4444
box2d: premake
4545
.build/premake5 --file=third_party/Box2D/premake5.lua gmake
46-
make -C third_party/Box2D/Build config=debug_x86_64 -j $$(($(CPUS)/2))
47-
make -C third_party/Box2D/Build config=release_x86_64 -j $$(($(CPUS)/2))
46+
make -C third_party/Box2D/Build config=debug_x86_64 -j$(CPUS)
47+
make -C third_party/Box2D/Build config=release_x86_64 -j$(CPUS)
4848

4949

0 commit comments

Comments
 (0)