2022-09-20 18:17:35 +02:00
|
|
|
# use bash so process substutution is available
|
|
|
|
SHELL = bash
|
2022-10-05 17:58:22 +02:00
|
|
|
SRC = bof.tex linux_intro.tex
|
2022-09-20 18:17:35 +02:00
|
|
|
TARGET = $(SRC:%.tex=%.pdf)
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build: $(TARGET)
|
|
|
|
|
|
|
|
# used for `nix-build`
|
|
|
|
.PHONY: install
|
|
|
|
install: build
|
|
|
|
mkdir -pv ${out}/
|
|
|
|
cp $(TARGET) ${out}/
|
|
|
|
|
|
|
|
%.pdf: %.tex
|
|
|
|
latexmk $<
|
|
|
|
|
2022-10-05 17:58:22 +02:00
|
|
|
# .PHONY: watch
|
|
|
|
# watch:
|
|
|
|
# latexmk -pvc $(SRC)
|
|
|
|
|
|
|
|
.PHONY: watch
|
|
|
|
watch_intro:
|
|
|
|
latexmk -pvc linux_intro.tex
|
|
|
|
|
2022-09-20 18:17:35 +02:00
|
|
|
.PHONY: watch
|
2022-10-05 17:58:22 +02:00
|
|
|
watch_bof:
|
|
|
|
latexmk -pvc bof.tex
|
2022-09-20 18:17:35 +02:00
|
|
|
|
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
|
|
|
chktex $(SRC)
|
|
|
|
|
|
|
|
.PHONY: languagetool
|
|
|
|
languagetool:
|
|
|
|
languagetool <(cat content.tex | ./scripts/detex-languagetool.py)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean: clean_tex
|
|
|
|
|
|
|
|
.PHONY: clean_tex
|
|
|
|
clean_tex:
|
|
|
|
latexmk -C
|
|
|
|
rm -rf ./_minted-presentation/
|
2022-10-05 17:58:22 +02:00
|
|
|
rm -rf ./_minted-bof/
|
|
|
|
rm -rf ./_minted-linux_intro/
|