Makefile.docbook.inc: allow to re-define the include directory

Change-Id: I08481319bbe14c3f45bf38bafa478de239751400
Related: SYS#4937
This commit is contained in:
Vadim Yanitskiy 2020-10-29 07:06:25 +07:00 committed by fixeria
parent 5be5350c8d
commit 2e5dd3cd3f
1 changed files with 4 additions and 1 deletions

View File

@ -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 $@) $<