From 8b539dbf1d0699e4724da11183b4bd8a2144e81d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 29 Jan 2024 11:09:35 -0800 Subject: Makefile: change default rule to build THEN test. That way we can play with the executable while the tests complete. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 13539b4d0..058b09309 100644 --- a/Makefile +++ b/Makefile @@ -19,14 +19,13 @@ REVISION?=1 BENCHARGS?=--csv bench_$(TIMESTAMP).csv $(BASELINECMD) --timeout=6 +RTS -T --nonmoving-gc -RTS $(if $(PATTERN),--pattern "$(PATTERN)",) pandoc=$(shell cabal list-bin $(CABALOPTS) pandoc-cli) -all: test build ## build executable and run tests +all: build test binpath ## build executable and run tests .PHONY: all build: ## build executable cabal build \ --ghc-options='$(GHCOPTS)' \ $(CABALOPTS) pandoc-cli - @cabal list-bin $(CABALOPTS) --ghc-options='$(GHCOPTS)' pandoc-cli .PHONY: build binpath: ## print path of built pandoc executable -- cgit v1.2.3