From 4c8261410d2e5c709f36bd3601bb27dc349a91d5 Mon Sep 17 00:00:00 2001
From: Tony Theodore
Date: Thu, 8 Aug 2013 15:49:16 +1000
Subject: [PATCH] doc update: add notes about gmake options and settings.mk
usage
---
index.html | 48 +++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 45 insertions(+), 3 deletions(-)
diff --git a/index.html b/index.html
index 85a7bc85..b12cbc1b 100644
--- a/index.html
+++ b/index.html
@@ -11,6 +11,9 @@
font-size: 11pt;
margin-top: 0em;
}
+ code {
+ background-color: #f5f5f5;
+ }
h1, h2, h3 {
font-family: sans-serif;
}
@@ -899,7 +902,9 @@ USE_OSGPLUGIN(<plugin2>)
All build commands also download the packages if necessary.
- In a BSD userland, substitute "make" with "gmake".
+ In a BSD userland, substitute "make" with "gmake"
+ as all commands are based on
+ GNU Make.
@@ -926,13 +931,50 @@ USE_OSGPLUGIN(<plugin2>)
non-parallel
- - make foo bar -j 4 JOBS=2
+ -
+ the package list can also be set in
+
settings.mk
+ LOCAL_PKG_LIST := foo bar
+.DEFAULT local-pkg-list:
+local-pkg-list: $(LOCAL_PKG_LIST)
+
+ -
+ so a call to
make
will only build those packages (and their
+ dependencies, of course)
+
+
+ - make foo bar --touch
+
+ -
+ mark packages "foo" and "bar" as up-to-date after
+ a trivial change in one of their dependencies
+ (short option "-t")
+
+
+ - make foo bar --jobs=4 JOBS=2
-
build packages "foo", "bar" and their dependencies,
- where up to 4 packages are build in parallel,
+ where up to 4 packages are built in parallel
+ (short option "-j 4"),
each with up to 2 compiler processes running in parallel
+ -
+ the JOBS variable can also be defined in
+
settings.mk
and defaults to the number
+ of CPUs up to a max of 6 to prevent runaway system
+ load with diminishing returns - see the
+ GNU Make manual
+ for more details on parallel execution
+
+
+ - make --jobs=4 --keep-going
+
+ -
+ build all packages with 4 inter-package parallel
+ jobs and continue as much as possible after an error
+ (short option "-j 4 -k")
+
- make check-requirements