This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.

42 lines
920 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 assets FORCE
$(info compiling $*)
@pipenv run ./vendor/latexrun --latex-cmd=$(LATEX) --latex-args="-shell-escape --8bit" --bibtex-cmd=$(BIBTEX) --makeglossaries-cmd=$(MAKEGLOS) $<
assets: assets/img/back_chess1.pdf assets/img/back_chess2.pdf assets/img/back_chess3.pdf assets/img/back_chess4.pdf assets/img/rew_interpreter_plot.pdf
assets/img/%.pdf: assets/img/src/%.tex
xelatex -output-directory=assets/img $<
rm -f assets/img/$*.{aux,log}
update:
pipenv lock
rm -f latex.out/.sync
clean:
./vendor/latexrun --clean-all
rm -f indent.log
clobber:
rm -rf latex.out/*
rm -f assets/img/{back_chess{1,2,3,4},rew_interpreter_plot}.*