Browse Source

Fix external plugins documentation

Loïc Hoguin 9 years ago
parent
commit
6083106b4e
1 changed files with 5 additions and 2 deletions
  1. 5 2
      doc/src/guide/external_plugins.asciidoc

+ 5 - 2
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