masterthesis/Makefile

45 lines
647 B
Makefile
Raw Normal View History

2021-02-03 10:44:28 +01:00
# use bash so process substutution is available
SHELL = bash
2021-10-18 12:59:29 +02:00
SRC = report.tex
2021-02-03 10:44:28 +01:00
TARGET = $(SRC:%.tex=%.pdf)
.PHONY: build
2021-11-11 16:43:53 +01:00
build: dot $(TARGET)
.PHONY: dot
dot:
$(MAKE) -C ./assets/dot/
2021-02-03 10:44:28 +01:00
# used for `nix-build`
.PHONY: install
install: build
mkdir -pv ${out}/
cp $(TARGET) ${out}/
%.pdf: %.tex
latexmk $<
.PHONY: watch
2021-11-11 16:43:53 +01:00
watch: dot
2021-02-03 10:44:28 +01:00
latexmk -pvc $(SRC)
.PHONY: lint
lint:
chktex $(SRC)
.PHONY: languagetool
languagetool:
languagetool <(cat $(SRC) | ./scripts/detex.py)
.PHONY: clean
2022-02-27 14:17:06 +01:00
clean: clean_dot clean_tex
.PHONY: clean_tex
clean_tex:
2021-02-03 10:44:28 +01:00
latexmk -C
2022-02-27 14:17:06 +01:00
rm -rf ./_minted-report/
2021-11-11 16:43:53 +01:00
.PHONY: clean_dot
clean_dot:
$(MAKE) -C ./assets/dot/ clean