aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-29 07:06:25 +0700
committerfixeria <vyanitskiy@sysmocom.de>2020-11-02 17:56:31 +0000
commit2e5dd3cd3f73bbe3055b698986b50f93e59bdf92 (patch)
tree90234d7f82567a9c534fbee830902818cf858b58
parent5be5350c8dadb0d87d81eb39ce7592f2926a48af (diff)
Makefile.docbook.inc: allow to re-define the include directory
-rw-r--r--build/Makefile.docbook.inc5
1 files changed, 4 insertions, 1 deletions
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 $@) $<