From a31b35859c4edb709d8567a3523c5ba6049e46c5 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Wed, 16 Jun 2021 15:36:19 +1000 Subject: [PATCH] Update build system --- Makefile | 12 ++++++------ assets/packages.tex | 17 ++--------------- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 85dc00c..efbbd4f 100644 --- a/Makefile +++ b/Makefile @@ -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/* diff --git a/assets/packages.tex b/assets/packages.tex index 2dfebb4..eeec8ce 100644 --- a/assets/packages.tex +++ b/assets/packages.tex @@ -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}