cabal repl
t:
- cabal test -fdump-splices --test-show-details always --test-options "--color always --size-cutoff 100000"
-t/accept:
- cabal test --test-show-details always --test-options "--accept --color always --size-cutoff 100000"
+ cabal test $(TESTFLAGS) --test-show-details always --test-options "$(TESTOPTIONS) --color always --size-cutoff 1000000 $${p:+-p $$p}"
+%/accept: TESTOPTIONS+=--accept
+%/accept: %
+
+%/cover: TESTFLAGS+=--enable-coverage
+%/cover: %
+
+t/prof: OPTIFLAGS?=-xc
t/prof:
- cabal test --enable-profiling --enable-library-coverage --enable-coverage --test-show-details always
+ cabal v2-build lib:symantic-parser --enable-profiling --write-ghc-environment-files=always
+ cabal test $(TESTFLAGS) --enable-profiling -fprof-auto -fprof-auto-calls \
+ --test-show-details always --test-options "$(TESTOPTIONS) $${p:+-p $$p}" \
+ --ghc-options "-opti+RTS -opti-p -opti-L100 -opti-ls $(addprefix -opti,$(OPTIFLAGS))"
t/repl:
cabal repl --enable-tests symantic-parser-test
-t/splices: t
- shopt -s globstar; $$EDITOR dist-newstyle/build/**/t/**/*.dump-splices
doc:
cabal haddock --haddock-css ocean --haddock-hyperlink-source
cabal haddock --haddock-for-hackage --enable-doc
upload: LANG=C
upload: tar
- cabal upload --publish dist-newstyle/sdist/$(package)-$(version).tar.gz
- cabal upload --publish --documentation dist-newstyle/$(package)-$(version)-docs.tar.gz
+ cabal upload $(CABAL_UPLOAD_FLAGS) dist-newstyle/sdist/$(package)-$(version).tar.gz
+ cabal upload $(CABAL_UPLOAD_FLAGS) --documentation dist-newstyle/$(package)-$(version)-docs.tar.gz
+%/publish: CABAL_UPLOAD_FLAGS+=--publish
+%/publish: %
+
+publish: upload/publish
nix-build:
nix -L build