diff options
author | Loïc Hoguin <[email protected]> | 2018-12-03 20:59:59 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-12-03 20:59:59 +0100 |
commit | 5da193f4a6f60ecf8ff4c5f748fa74c872ef361e (patch) | |
tree | bf72a90e7302976f673d082344d0d258d3650bdf /guide/plugins_usage.html | |
parent | fdefda6c3d7e6ed72d48445fdd9c580737381e2d (diff) | |
download | erlang.mk-5da193f4a6f60ecf8ff4c5f748fa74c872ef361e.tar.gz erlang.mk-5da193f4a6f60ecf8ff4c5f748fa74c872ef361e.tar.bz2 erlang.mk-5da193f4a6f60ecf8ff4c5f748fa74c872ef361e.zip |
Update user guide
Diffstat (limited to 'guide/plugins_usage.html')
-rw-r--r-- | guide/plugins_usage.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guide/plugins_usage.html b/guide/plugins_usage.html index c78e48b..a2f01a3 100644 --- a/guide/plugins_usage.html +++ b/guide/plugins_usage.html @@ -65,7 +65,9 @@ file:</p><pre class="programlisting">THIS := $(dir $(realpath $(lastword $(MAKEF include $(THIS)/mk/dist.mk include $(THIS)/mk/templates.mk</pre><p>The <code class="literal">THIS</code> variable is required to relatively include files.</p><p>This allows users to not only be able to select individual plugins, but also select all plugins from the dependency -in one go if they wish to do so.</p></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_early_stage_plugins"></a>25.4. Early-stage plugins</h2></div></div></div><p>Plugins declared in <code class="literal">DEP_PLUGINS</code> are loaded near the end of Erlang.mk. +in one go if they wish to do so.</p><p>Plugins can include some help text by extending the target +<code class="literal">help-plugins</code>:</p><pre class="programlisting">help-plugins:: + $(verbose) printf "%s\n" "" "Run benchmark: $(MAKE) perfs"</pre></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_early_stage_plugins"></a>25.4. Early-stage plugins</h2></div></div></div><p>Plugins declared in <code class="literal">DEP_PLUGINS</code> are loaded near the end of Erlang.mk. That’s why you have access to all previously initialized variables. However, if you want your plugin to add common dependencies to your applications, a regular is loaded too late in the process. |