Re-add unintentionally removed check-clean. Add ability to skip check-clean.

This commit is contained in:
Cody Soyland 2018-05-16 08:47:36 -05:00
parent a2ef9afabb
commit bf789e2e97

View file

@ -50,6 +50,9 @@ release-build: vendor
# Error out if there are untracked changes in Git
check-clean:
ifndef SKIP_CHECK_CLEAN
$(if $(shell git status --porcelain),$(error Git status is not clean! Please commit or checkout/reset changes.))
endif
# Create release build tarballs for all supported platforms. Linux compilation happens under Docker.
release: check-clean