aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-10-16 11:34:09 -0700
committerJohn MacFarlane <[email protected]>2022-10-16 14:59:22 -0700
commitfa450607a832c29aa24ff57dba83c7491c83feeb (patch)
treeea339c1de5643024692d61ebd9a49619854fde2b
parentf1895797707f7cdb1d5178804ef5816af86173f3 (diff)
Makefile: fix .PHONY for test and build.
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index bd456a7eb..384bd3fbe 100644
--- a/Makefile
+++ b/Makefile
@@ -18,11 +18,15 @@ WEBSITE=../../web/pandoc.org
REVISION?=1
BENCHARGS?=--csv bench_$(TIMESTAMP).csv $(BASELINECMD) --timeout=6 +RTS -T --nonmoving-gc -RTS $(if $(PATTERN),--pattern "$(PATTERN)",)
-all: test ## tests and build executable
+all: test build ## build executable and run tests
+.PHONY: all
+
+build: ## build executable
cabal build \
--ghc-options='$(GHCOPTS)' \
- $(CABALOPTS) all
-.PHONY: quick-cabal
+ $(CABALOPTS) pandoc-cli
+ @cabal list-bin $(CABALOPTS) --ghc-options='$(GHCOPTS)' pandoc-cli
+.PHONY: build
binpath: ## print path of built pandoc executable
@cabal list-bin $(CABALOPTS) pandoc-cli
@@ -35,7 +39,7 @@ test: ## unoptimized build and run tests with cabal
--ghc-options='$(GHCOPTS)' \
$(CABALOPTS) \
--test-options="--hide-successes --ansi-tricks=false $(TESTARGS)"
-.PHONY: quick-cabal-test
+.PHONY: test
quick-stack: ## unoptimized build and tests with stack
stack install \