asciidoc: use absolute path for resources
authorAtul Singh <atul.singh.mandla@rockwellcollins.com>
Wed, 27 Jul 2016 18:02:48 +0000 (13:02 -0500)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 27 Jul 2016 19:26:39 +0000 (21:26 +0200)
commit9d4a1a78d11f823336b74835ec6b02c1505502b6
treeaf8a17a9ebd72d9917f0223a945f7d6e4e744217
parent7800ae9f6a5735909956ac20c82d2c99ccb68761
asciidoc: use absolute path for resources

One of the "features" of a2x is that the '-r|--resource' flag imports
resources relative to the [SOURCE_FILE], not the CWD. The current
implementation tries to import resources from the destination dir $(@D),
which works fine for out-of-tree builds because $(@D) is an absolute
path, however in-tree builds treat $(@D) as a relative path, which breaks
because a2x treats $(@D) relative to SOURCE_FILE.

Use the make command $(abspath names...) to convert the dest dir to an
absolute path before passing it as a resource.

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com>
Signed-off-by: Atul Singh Mandla <atul.singh.mandla@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/doc-asciidoc.mk