game-theory-in-flow-problems/Makefile

32 lines
699 B
Makefile
Raw Normal View History

2023-10-09 07:19:22 +02:00
pdf: init
latexmk -halt-on-error < /dev/null
clean:
latexmk -c
clean-all:
latexmk -C
rm -rf build/
## Stuff to set up repository after cloning
init: .init-submodule-cert .init-git-hooks-cert
.init-submodule-cert:
@echo "[Make] Initialising git submodule for packages"
git submodule update --init --rebase
@touch .init-submodule-cert
# Sets up git hooks for gitinfo2 package
.init-git-hooks-cert:
@echo "[Make] Setting up git hooks for package gitinfo2"
@mkdir -p .git/hooks
2023-10-17 22:15:53 +02:00
@cp .git-info-2.sh .git/hooks/post-merge
@cp .git-info-2.sh .git/hooks/post-checkout
@cp .git-info-2.sh .git/hooks/post-commit
@./.git-info-2.sh
2023-10-09 07:19:22 +02:00
@touch .init-git-hooks-cert
.PHONY: pdf, clean, clean-all