|
|
@ -4,6 +4,7 @@ PROJ_ROOT=$(PWD) |
|
|
|
DOC_PATH=$(PROJ_ROOT)/doc |
|
|
|
OUT_PATH=$(PROJ_ROOT)/out |
|
|
|
BUILD_PATH=$(PROJ_ROOT)/build |
|
|
|
BUILD_PASSES=2 |
|
|
|
DOC_VERSION=$(shell git describe --always) |
|
|
|
|
|
|
|
LATEX_ENGINE=xelatex |
|
|
@ -51,8 +52,12 @@ $(OUT_PATH)/thesis.pdf: $(DOC_PATH)/text.tex $(TEX_FILES) |
|
|
|
rsync --quiet --update --recursive $(DOC_PATH)/ $(BUILD_PATH) |
|
|
|
sed -i -e "s/DOCUMENT-VERSION-PLACEHOLDER/$(DOC_VERSION)/g" $(BUILD_PATH)/title.tex |
|
|
|
cd $(BUILD_PATH) && xelatex $(XELATEX_CI_OPTS) -no-pdf thesis |
|
|
|
cd $(BUILD_PATH) && biber thesis |
|
|
|
cd $(BUILD_PATH) && xelatex $(XELATEX_CI_OPTS) thesis |
|
|
|
idx=1 ; while [[ $$idx -le $(BUILD_PASSES) ]] ; do \
|
|
|
|
echo "Build pass #$$idx"; \
|
|
|
|
cd $(BUILD_PATH) && biber thesis; \
|
|
|
|
cd $(BUILD_PATH) && xelatex $(XELATEX_CI_OPTS) thesis; \
|
|
|
|
((idx += 1)) ; \
|
|
|
|
done |
|
|
|
cp $(BUILD_PATH)/thesis.pdf $(OUT_PATH) |
|
|
|
#makeglossaries $(BUILD_PATH)/glossary && |
|
|
|
|
|
|
|