From bf789e2e97249321254c5cd7b76c299d780b4f29 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Wed, 16 May 2018 08:47:36 -0500 Subject: [PATCH] Re-add unintentionally removed check-clean. Add ability to skip check-clean. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index ecd02fa70..025ce93fd 100644 --- a/Makefile +++ b/Makefile @@ -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