Skip to content

Commit

Permalink
Makefile: pass on parallelism to build.sh, run configure when require…
Browse files Browse the repository at this point in the history
…d. (#884)
  • Loading branch information
leahneukirchen authored Sep 20, 2023
1 parent 8e4f54c commit 792c1f1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
default: build
# Parse -j from MAKEFLAGS for parallelism.
GERBIL_BUILD_CORES := $(or $(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS))),1)

all: build

build:
./build.sh
GERBIL_BUILD_CORES=$(GERBIL_BUILD_CORES) ./build.sh

install:
./install.sh
Expand All @@ -10,3 +13,5 @@ clean:
rm -rf build
rm -rf bootstrap
cd src/gambit && make clean

.PHONY: all install clean

0 comments on commit 792c1f1

Please sign in to comment.