aboutsummaryrefslogtreecommitdiffstats
path: root/guide/plugins_usage.html
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-05-15 16:54:40 +0200
committerLoïc Hoguin <[email protected]>2017-05-15 16:54:40 +0200
commite1e76745e6719e0aa05b634a65500d4f8b8e4a7b (patch)
tree43230e4be2ac15e8df560a180ad59a2c3c7ec352 /guide/plugins_usage.html
parentc9f02396bde179bc7b8e1687042513b1a71914e5 (diff)
downloaderlang.mk-e1e76745e6719e0aa05b634a65500d4f8b8e4a7b.tar.gz
erlang.mk-e1e76745e6719e0aa05b634a65500d4f8b8e4a7b.tar.bz2
erlang.mk-e1e76745e6719e0aa05b634a65500d4f8b8e4a7b.zip
Update user guide
Diffstat (limited to 'guide/plugins_usage.html')
-rw-r--r--guide/plugins_usage.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/guide/plugins_usage.html b/guide/plugins_usage.html
index eb8bc2f..f6d2c4b 100644
--- a/guide/plugins_usage.html
+++ b/guide/plugins_usage.html
@@ -79,7 +79,16 @@ BUILD_DEPS = common_deps
DEP_EARLY_PLUGINS = common_deps</pre><pre class="programlisting"># In the plugin's early-plugins.mk
DEPS += cowboy
TEST_DEPS = ct_helper
-dep_ct_helper = git https://github.com/ninenines/ct_helper master</pre></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="plugins.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="plugins.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="plugins_list.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div>
+dep_ct_helper = git https://github.com/ninenines/ct_helper master</pre></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_loading_plugins_local_to_the_application"></a>22.5. Loading plugins local to the application</h2></div></div></div><p>If the Erlang.mk plugin lives in the same directory or repository as your
+application or library, then you can load it exactly like an external
+plugin: the dependency name is simply the name of your application or
+library.</p><p>For example, the following Makefile loads a plugin in the <span class="emphasis"><em>mk</em></span>
+subdirectory:</p><pre class="programlisting">DEP_PLUGINS = $(PROJECT)/mk/dist.mk</pre><p>This also works with early-stage plugins:</p><pre class="programlisting">DEP_EARLY_PLUGINS = $(PROJECT)/mk/variables.mk</pre><p>Like external plugins, if you do not specify the path to the plugin, it
+defaults to <span class="emphasis"><em>plugins.mk</em></span> or <span class="emphasis"><em>early-plugins.mk</em></span>, located at the root of
+your application:</p><pre class="programlisting"># Loads ./early-plugins.mk
+DEP_EARLY_PLUGINS = $(PROJECT)
+# Loads ./plugins.mk
+DEP_PLUGINS = $(PROJECT)</pre></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="plugins.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="plugins.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="plugins_list.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div>
</main>
</body>
</html>