Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
makefile: rework "{generate,vendor}-check" targets
`TMP_DIR := $(shell mktemp -d)` causes everytime we call `make` to leak a temporary directory "/tmp/tmp.*/". We could fix that by always using the same directory ("/tmp/something") or by concatenating all make steps with `TMPDIR=$(mktemp ...) && cd $TMPDIR && ...`. Instead, add and use a "scripts/check-gittree-for-diff.sh" script. That is useful, because the make targets "{generate,vendor}-check" are basically the same. We can implement them both by calling the script. And by having a stand-alone bash scripts, it's easier to review (as it's not a shell scripted escaped in inside make). Also, `make vendor-check` now just calls `make vendor`. Previously, it reimplemnted how vendoring works.
- Loading branch information