aboutsummaryrefslogtreecommitdiff
path: root/common/Makefile.common
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2024-05-23 14:46:28 +0200
committerSébastien Dailly <sebastien@dailly.me>2024-05-23 14:46:28 +0200
commit6428d3ffcd777206024b00c261ca759b98eafb49 (patch)
tree5d4f2a0ea7d461f1d9b5c603073b7573c2519ca9 /common/Makefile.common
parentd0a4827c8771f7d847cfc7c68e1961500184fa66 (diff)
Loads the fonts even if the project is outside of the directory
Diffstat (limited to 'common/Makefile.common')
-rw-r--r--common/Makefile.common6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/Makefile.common b/common/Makefile.common
index d739a5e..a05db25 100644
--- a/common/Makefile.common
+++ b/common/Makefile.common
@@ -60,7 +60,11 @@ tmp:
# Hack used to identify the path to the shared configuration in latex.
tmp/model.tex: | tmp
- $(file >$@,\def\commonPath{$(MODEL)/../common/})
+ # Transform the path to the model into an absolute path, because this path
+ # will be used in the lualatex cache to references the fonts, and using
+ # relative path can cause issues if we need to references the font from
+ # another location.
+ $(file >$@,\def\commonPath{$(abspath $(MODEL)/../common/)})
# Generate the latex file from rst
tmp/%.tex: %.rst $(INCLUDED_PDF) $(SOURCES) | tmp