Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlotte Koch <dressupgeekout@gmail.com>2022-04-25 22:07:06 +0300
committerCharlotte Koch <dressupgeekout@gmail.com>2022-04-27 06:14:24 +0300
commitfc02a41b2f5b032030b07a6965b6e7add42e4166 (patch)
treedf1bf692549c750993f795f360f717588c87ea04
parent08da859107194d3d283c6b54565bffb656478a26 (diff)
More portable top-level Makefile
* Don't assume GNU make is called "make" * Don't assume nproc(1) is available
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3f3a3c1d..22b103b0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-PROCS = $(shell nproc)
+PROCS ?= $(shell nproc)
default: setup build
setup:
@@ -29,7 +29,7 @@ deactivate-ogda:
cd Build; cmake -DBUILD_OGDA=Off ../Projects
build:
- make --no-print-directory -j$(PROCS) -C Build
+ $(MAKE) --no-print-directory -j$(PROCS) -C Build
run:
cd Build; ./Overgrowth.bin.x86_64
@@ -39,4 +39,4 @@ debug:
test:
cd Build; ./Overgrowth.bin.x86_64 --run-unit-tests
clean:
- make --no-print-directory -j$(PROCS) -C Build clean
+ $(MAKE) --no-print-directory -j$(PROCS) -C Build clean