-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
14 lines (11 loc) · 758 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.PHONY: build clean
build:
# taken from
# https://github.com/blang/latex-docker/blob/42d2c532a09a00938331512fd2b539f9944c400c/latexdockercmd.sh
docker run --rm --user="$(shell id -u):$(shell id -g)" --net=none -v "$(PWD)":/data blang/latex:ubuntu latexmk -shell-escape -interaction=nonstopmode -halt-on-error -output-directory=build -f -pdf main.tex
clean:
find build/* ! -name '.gitkeep' -type f -exec rm -f {} + || true
find build/* ! -name '.gitkeep' -type d -exec rm -rf {} + || true
lint:
docker run --rm -i -v "$(PWD)":/work goodcheck goodcheck check
docker run --rm -i -v "$(PWD)":/root gitlab-registry.cern.ch/db/jeedy/utils/yamllint-docker:1.15.0 yamllint -c /root/yamllint.yml /root/.gitlab-ci.yml /root/goodcheck.yml /root/yamllint.yml