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 LATEX=xelatex
BIBTEX=biber BIBTEX=biber
MAKEGLOS=makeglossaries MAKEGLOS=makeglossaries
BUILDDIR=build
.PHONY: FORCE .PHONY: FORCE
@ -12,20 +11,21 @@ main: dekker_thesis.pdf
all: $(TARGETS) all: $(TARGETS)
$(BUILDDIR)/.sync: latex.out/.sync:
pipenv sync pipenv sync
touch latex.out/.sync
%.pdf: %.tex FORCE %.pdf: %.tex latex.out/.sync FORCE
$(info compiling $@) $(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: update:
pipenv lock pipenv lock
rm -f $(BUILDDIR)/.sync rm -f latex.out/.sync
clean: clean:
./vendor/latexrun --clean-all ./vendor/latexrun --clean-all
rm -f indent.log rm -f indent.log
clobber: clobber:
rm -rf build/* rm -rf latex.out/*

View File

@ -52,6 +52,7 @@
% References % References
\usepackage[ \usepackage[
style=apa, style=apa,
backend=biber,
]{biblatex} ]{biblatex}
\DeclareLanguageMapping{australian}{english-apa} \DeclareLanguageMapping{australian}{english-apa}
\usepackage[noabbrev]{cleveref} \usepackage[noabbrev]{cleveref}
@ -126,26 +127,12 @@
refname={example,examples}, refname={example,examples},
Refname={Example,Examples} Refname={Example,Examples}
]{example} ]{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 % Code formatting
\usepackage[ \usepackage[
chapter, chapter,
cachedir=listings, cachedir=listings,
outputdir=build, outputdir=latex.out,
]{minted} ]{minted}
\usemintedstyle{borland} \usemintedstyle{borland}