aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide/external_plugins.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-11 13:29:33 +0200
committerLoïc Hoguin <[email protected]>2015-09-11 13:29:33 +0200
commit6083106b4eb4d27b3d9b8a8a7582ae298801d7d2 (patch)
tree4fde4346db08d171399702d1eebefa805f7a1ca4 /doc/src/guide/external_plugins.asciidoc
parentb09119c27893528d7a9d51ca29c0c5e2f8fbaa70 (diff)
downloaderlang.mk-6083106b4eb4d27b3d9b8a8a7582ae298801d7d2.tar.gz
erlang.mk-6083106b4eb4d27b3d9b8a8a7582ae298801d7d2.tar.bz2
erlang.mk-6083106b4eb4d27b3d9b8a8a7582ae298801d7d2.zip
Fix external plugins documentation
Diffstat (limited to 'doc/src/guide/external_plugins.asciidoc')
-rw-r--r--doc/src/guide/external_plugins.asciidoc7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/src/guide/external_plugins.asciidoc b/doc/src/guide/external_plugins.asciidoc
index e5fdbd7..027b1b9 100644
--- a/doc/src/guide/external_plugins.asciidoc
+++ b/doc/src/guide/external_plugins.asciidoc
@@ -65,8 +65,11 @@ For eaxmple, if you have two plugins 'mk/dist.mk' and
file:
[source,make]
-include mk/dist.mk
-include mk/templates.mk
+THIS := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
+include $(THIS)/mk/dist.mk
+include $(THIS)/mk/templates.mk
+
+The `THIS` variable is required to relatively include files.
This allows users to not only be able to select individual
plugins, but also select all plugins from the dependency