aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-01 23:58:13 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-01 23:58:13 -0700
commitdf28f8cf9e9b82998810cf9bb0523b316836d56e (patch)
treee368b2850a81017d1847a33c807ae025f1e5ba74
parentb5a18e748d58c8147b62da3feb05fc1f7994b7cf (diff)
downloadpandoc-df28f8cf9e9b82998810cf9bb0523b316836d56e.tar.gz
Makefile: added quick-cabal target as default.
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b18541aa4..b8d4d589f 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,11 @@ GHCOPTS=-fdiagnostics-color=always -Wall -fno-warn-unused-do-bind -Wincomplete-r
# -Wredundant-constraints (problematic if we want to support older base)
WEBSITE=../../web/pandoc.org
+quick-cabal:
+ cabal new-build . --ghc-options '$(GHCOPTS)' --flags '+embed_data_files' --enable-tests
+ cabal new-install --symlink-bindir=$$HOME/.local/bin
+ cabal new-run test-pandoc --ghc-options '$(GHCOPTS)' --flags '+embed_data_files' -- -j4 --hide-successes $(TESTARGS)
+
quick:
stack install --resolver=$(RESOLVER) --ghc-options='$(GHCOPTS)' --install-ghc --flag 'pandoc:embed_data_files' --fast --test --test-arguments='-j4 --hide-successes $(TESTARGS)'