From 532a74a36a889e3d7d25004ebce70da62b013755 Mon Sep 17 00:00:00 2001 From: Anthony Jackson Date: Fri, 3 Mar 2017 10:57:58 +0200 Subject: tools: Allow Emake options to be passed in explicitly This allows build scripts to use emake without needing to generate an Emakefile before running make:all/0,1 or make:file/1,2. --- lib/tools/doc/src/make.xml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'lib/tools/doc') diff --git a/lib/tools/doc/src/make.xml b/lib/tools/doc/src/make.xml index fddf5ebd7b..6b878f72fb 100644 --- a/lib/tools/doc/src/make.xml +++ b/lib/tools/doc/src/make.xml @@ -43,15 +43,15 @@ Compile a set of modules. Options = [Option] -  Option = noexec | load | netload | <compiler option> +  Option = noexec | load | netload | {emake, Emake} | <compiler option> -

This function first looks in the current working directory - for a file named Emakefile (see below) specifying the - set of modules to compile and the compile options to use. If - no such file is found, the set of modules to compile - defaults to all modules in the current working - directory.

+

This function determines the set of modules to compile and the + compile options to use, by first looking for the emake make + option, if not present reads the configuration from a file named + Emakefile (see below). If no such file is found, the + set of modules to compile defaults to all modules in the + current working directory.

Traversing the set of modules, it then recompiles every module for which at least one of the following conditions apply:

@@ -77,6 +77,9 @@ netload

Net load mode. Loads all recompiled modules on all known nodes.
+ {emake, Emake}

+ + Rather than reading the Emakefile specify configuration explicitly.

All items in Options that are not make options are assumed to be compiler options and are passed as-is to @@ -108,9 +111,10 @@

Emakefile -

make:all/0,1 and make:files/1,2 looks in the - current working directory for a file named Emakefile. If - it exists, Emakefile should contain elements like this:

+

make:all/0,1 and make:files/1,2 first looks for + {emake, Emake} in options, then in the current working directory + for a file named Emakefile. If present Emake should + contain elements like this:

Modules. {Modules,Options}. -- cgit v1.2.3