Makefile.docbook.inc: allow to re-define the include directory
Change-Id: I08481319bbe14c3f45bf38bafa478de239751400 Related: SYS#4937
This commit is contained in:
parent
5be5350c8d
commit
2e5dd3cd3f
|
@ -27,6 +27,9 @@ UPLOAD_FILES += $(DOCBOOKS_PDF)
|
||||||
|
|
||||||
all: $(DOCBOOKS_PDF)
|
all: $(DOCBOOKS_PDF)
|
||||||
|
|
||||||
|
# Allow the users to re-define the include directory
|
||||||
|
INC_DIR ?= $(PWD)/generated
|
||||||
|
|
||||||
# Lint the file
|
# Lint the file
|
||||||
%.xml-lint: %.xml
|
%.xml-lint: %.xml
|
||||||
xmllint --xinclude --postvalid --noout $<
|
xmllint --xinclude --postvalid --noout $<
|
||||||
|
@ -34,6 +37,6 @@ all: $(DOCBOOKS_PDF)
|
||||||
# Create a PDF file and lint it before
|
# Create a PDF file and lint it before
|
||||||
# xslt path: find includes in both $(OSMO_GSM_MANUALS_DIR)/common/chapters and $(builddir)/generated
|
# xslt path: find includes in both $(OSMO_GSM_MANUALS_DIR)/common/chapters and $(builddir)/generated
|
||||||
%.pdf: %.xml %.xml-lint $(DOCBOOKS_DEPS) build common
|
%.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 $@) $<
|
$(dblatex_quiet) -P draft.mode=no -o $(notdir $@) $<
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue