diff --git a/Makefile.coq.local b/Makefile.coq.local index 5983b4d1b91d0f43d27b5703fcb3e911abe9b2d2..9bdf479c97e7167dbc2a56a39fc3f40b7d932cb4 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