Initial commit
This commit is contained in:
32
Makefile
Normal file
32
Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# use bash so process substutution is available
|
||||
SHELL = bash
|
||||
SRC = main.tex
|
||||
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 $<
|
||||
|
||||
.PHONY: watch
|
||||
watch:
|
||||
latexmk -pvc $(SRC)
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
chktex $(SRC)
|
||||
|
||||
.PHONY: languagetool
|
||||
languagetool:
|
||||
languagetool <(cat $(SRC) | ./scripts/detex.py)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
latexmk -C
|
Reference in New Issue
Block a user