From 2e5dd3cd3f73bbe3055b698986b50f93e59bdf92 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 29 Oct 2020 07:06:25 +0700 Subject: [PATCH] Makefile.docbook.inc: allow to re-define the include directory Change-Id: I08481319bbe14c3f45bf38bafa478de239751400 Related: SYS#4937 --- build/Makefile.docbook.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/Makefile.docbook.inc b/build/Makefile.docbook.inc index 655ff58..22e9bb4 100644 --- a/build/Makefile.docbook.inc +++ b/build/Makefile.docbook.inc @@ -27,6 +27,9 @@ UPLOAD_FILES += $(DOCBOOKS_PDF) all: $(DOCBOOKS_PDF) +# Allow the users to re-define the include directory +INC_DIR ?= $(PWD)/generated + # Lint the file %.xml-lint: %.xml xmllint --xinclude --postvalid --noout $< @@ -34,6 +37,6 @@ all: $(DOCBOOKS_PDF) # Create a PDF file and lint it before # xslt path: find includes in both $(OSMO_GSM_MANUALS_DIR)/common/chapters and $(builddir)/generated %.pdf: %.xml %.xml-lint $(DOCBOOKS_DEPS) build common - dblatex --xslt-opts="--path $(realpath $(OSMO_GSM_MANUALS_DIR))/common/chapters:$$PWD/generated" \ + dblatex --xslt-opts="--path $(realpath $(OSMO_GSM_MANUALS_DIR))/common/chapters:$(INC_DIR)" \ $(dblatex_quiet) -P draft.mode=no -o $(notdir $@) $<