Update build system

This commit is contained in:
Jip J. Dekker 2021-06-16 15:36:19 +10:00
parent ca9c5725db
commit a31b35859c
No known key found for this signature in database
GPG Key ID: 517DF4A00618C9C3
2 changed files with 8 additions and 21 deletions

View File

@ -4,7 +4,6 @@ MAKE=make
LATEX=xelatex
BIBTEX=biber
MAKEGLOS=makeglossaries
BUILDDIR=build
.PHONY: FORCE
@ -12,20 +11,21 @@ main: dekker_thesis.pdf
all: $(TARGETS)
$(BUILDDIR)/.sync:
latex.out/.sync:
pipenv sync
touch latex.out/.sync
%.pdf: %.tex FORCE
%.pdf: %.tex latex.out/.sync FORCE
$(info compiling $@)
@pipenv run ./vendor/latexrun --latex-cmd=$(LATEX) --latex-args="-shell-escape --8bit" --bibtex-cmd=$(BIBTEX) --makeglossaries-cmd=$(MAKEGLOS) -O $(BUILDDIR) $<
@pipenv run ./vendor/latexrun --latex-cmd=$(LATEX) --latex-args="-shell-escape --8bit" --bibtex-cmd=$(BIBTEX) --makeglossaries-cmd=$(MAKEGLOS) $<
update:
pipenv lock
rm -f $(BUILDDIR)/.sync
rm -f latex.out/.sync
clean:
./vendor/latexrun --clean-all
rm -f indent.log
clobber:
rm -rf build/*
rm -rf latex.out/*

View File

@ -52,6 +52,7 @@
% References
\usepackage[
style=apa,
backend=biber,
]{biblatex}
\DeclareLanguageMapping{australian}{english-apa}
\usepackage[noabbrev]{cleveref}
@ -126,26 +127,12 @@
refname={example,examples},
Refname={Example,Examples}
]{example}
% \newtheoremstyle{example}{}{}{}{}{\usekomafont{disposition}}{. }{5pt plus 1pt minus 1pt}{}
% Arguments ---
% Thm head spec
% Space above
% Space below
% Body font
% Indent amount (empty = no indent, \parindent = para indent)
% Thm head font
% Punctuation after thm head
% Space after thm head: \newline = linebreak
% --- Note, empty = default value
% \theoremstyle{example}
% \newtheorem{example}{Example}[chapter]
% Code formatting
\usepackage[
chapter,
cachedir=listings,
outputdir=build,
outputdir=latex.out,
]{minted}
\usemintedstyle{borland}