From b123b1a4ca6b72fc7addea86a95d25f83d93cfa9 Mon Sep 17 00:00:00 2001
From: Ralf Jung <jung@mpi-sws.org>
Date: Thu, 27 May 2021 11:37:47 +0200
Subject: [PATCH] perform style checks in parallel with main build

---
 Makefile.coq.local | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/Makefile.coq.local b/Makefile.coq.local
index 5983b4d1b..9bdf479c9 100644
--- a/Makefile.coq.local
+++ b/Makefile.coq.local
@@ -5,13 +5,9 @@ NO_TEST:=
 MAKE_REF:=
 
 # Run tests interleaved with main build.  They have to be in the same target for this.
-real-all: $(if $(NO_TEST),,test)
+real-all: style $(if $(NO_TEST),,test)
 
-# the test suite
-TESTFILES:=$(shell find tests -name "*.v")
-NORMALIZER:=test-normalizer.sed
-
-test: $(TESTFILES:.v=.vo)
+style: $(VFILES)
 # Make sure everything imports the options, and all Instance/Argument/Hint are qualified.
 	$(SHOW)"Performing some style checks..."
 	$(HIDE)for FILE in $(VFILES); do \
@@ -20,6 +16,13 @@ test: $(TESTFILES:.v=.vo)
 	done
 # Make sure main Iris does not import other Iris packages.
 	$(HIDE)if egrep 'iris\.(heap_lang|deprecated|staging)' --include "*.v" -R iris; then echo "ERROR: Iris may not import modules from other Iris packages (see above for violations)."; echo; exit 1; fi
+.PHONY: style
+
+# the test suite
+TESTFILES:=$(shell find tests -name "*.v")
+NORMALIZER:=test-normalizer.sed
+
+test: $(TESTFILES:.v=.vo)
 .PHONY: test
 
 COQ_TEST=$(COQTOP) $(COQDEBUG) -batch -test-mode
-- 
GitLab