2022-02-15 22:20:15 +01:00
|
|
|
pdf: init
|
2023-07-13 14:43:54 +02:00
|
|
|
latexmk < /dev/null
|
2022-02-15 20:57:33 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
latexmk -c
|
|
|
|
|
|
|
|
clean-all:
|
|
|
|
latexmk -C
|
2022-02-15 22:24:16 +01:00
|
|
|
rm -rf build/
|
2022-02-15 20:57:33 +01:00
|
|
|
|
2022-02-15 22:20:15 +01:00
|
|
|
## Stuff to set up repository after cloning
|
|
|
|
|
|
|
|
init: .init-submodule-cert .init-git-hooks-cert
|
|
|
|
|
2022-02-15 20:57:33 +01:00
|
|
|
.init-submodule-cert:
|
|
|
|
@echo "[Make] Initialising git submodule for packages"
|
|
|
|
git submodule update --init --rebase
|
|
|
|
@touch .init-submodule-cert
|
|
|
|
|
2022-02-15 22:20:15 +01:00
|
|
|
# Sets up git hooks for gitinfo2 package
|
|
|
|
.init-git-hooks-cert:
|
|
|
|
@echo "[Make] Setting up git hooks for package gitinfo2"
|
|
|
|
@mkdir -p .git/hooks
|
|
|
|
@cp .ci/git-info-2.sh .git/hooks/post-merge
|
|
|
|
@cp .ci/git-info-2.sh .git/hooks/post-checkout
|
|
|
|
@cp .ci/git-info-2.sh .git/hooks/post-commit
|
|
|
|
@.ci/git-info-2.sh
|
2022-02-15 22:24:16 +01:00
|
|
|
@touch .init-git-hooks-cert
|
2022-02-15 22:20:15 +01:00
|
|
|
|
|
|
|
|
2022-02-15 20:57:33 +01:00
|
|
|
.PHONY: pdf, clean, clean-all
|