Change Makefile to use latexrun

This commit is contained in:
Jip J. Dekker 2021-05-21 14:31:20 +10:00
parent fb565cf28c
commit 372c1557aa
No known key found for this signature in database
GPG Key ID: 517DF4A00618C9C3
2 changed files with 2027 additions and 6 deletions

View File

@ -1,13 +1,27 @@
PROJECT=dekker_thesis
TARGETS = dekker_thesis.pdf
.PHONY: $(PROJECT).pdf clean
MAKE=make
LATEX=xelatex
BIBTEX=biber
BUILDDIR=build
$(PROJECT).pdf: $(PROJECT).tex
pipenv run latexmk --shell-escape $<
.PHONY: FORCE
all: $(TARGETS)
$(BUILDDIR)/.sync:
pipenv sync
%.pdf: %.tex FORCE
pipenv run ./latexrun --latex-cmd=$(LATEX) --latex-args="-shell-escape" --bibtex-cmd=$(BIBTEX) -O $(BUILDDIR) $<
update:
pipenv lock
rm -f $(BUILDDIR)/.sync
clean:
latexmk -c
./latexrun --clean-all
rm -f indent.log
clobber:
latexmk -C
rm -rf build/

2007
latexrun Executable file

File diff suppressed because it is too large Load Diff