33 lines
581 B
Makefile
33 lines
581 B
Makefile
TARGETS = dekker_thesis.pdf dekker_preamble.pdf
|
|
|
|
MAKE=make
|
|
LATEX=xelatex
|
|
BIBTEX=biber
|
|
MAKEGLOS=makeglossaries
|
|
|
|
.PHONY: FORCE
|
|
|
|
main: dekker_thesis.pdf
|
|
|
|
all: $(TARGETS)
|
|
|
|
latex.out/.sync:
|
|
pipenv sync
|
|
mkdir -p latex.out
|
|
touch latex.out/.sync
|
|
|
|
%.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) $<
|
|
|
|
update:
|
|
pipenv lock
|
|
rm -f latex.out/.sync
|
|
|
|
clean:
|
|
./vendor/latexrun --clean-all
|
|
rm -f indent.log
|
|
|
|
clobber:
|
|
rm -rf latex.out/*
|