Change Makefile to use latexrun
This commit is contained in:
parent
fb565cf28c
commit
372c1557aa
26
Makefile
26
Makefile
@ -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/
|
||||
|
Reference in New Issue
Block a user