2019-02-18 18:08:13 +01:00
|
|
|
# With common maintenance tasks
|
|
|
|
|
2019-02-20 18:05:49 +01:00
|
|
|
HC ?= ghc-8.4.4
|
|
|
|
|
2019-02-18 18:08:13 +01:00
|
|
|
all :
|
|
|
|
@echo "Don't try to make all at once!"
|
|
|
|
|
2019-02-20 18:05:49 +01:00
|
|
|
really-all :
|
|
|
|
$(MAKE) build-ghc
|
|
|
|
$(MAKE) build-ghc HC=ghc-8.0.2
|
|
|
|
$(MAKE) build-ghc HC=ghc-8.2.2
|
2018-07-28 14:40:25 +02:00
|
|
|
$(MAKE) build-ghc HC=ghc-8.6.5
|
2019-02-20 18:05:49 +01:00
|
|
|
$(MAKE) build-ghcjs
|
|
|
|
|
2019-02-18 18:08:13 +01:00
|
|
|
build-ghc :
|
2019-02-20 18:05:49 +01:00
|
|
|
cabal v2-build -w $(HC) all
|
2019-02-18 18:08:13 +01:00
|
|
|
|
|
|
|
build-ghcjs :
|
|
|
|
cabal v2-build --builddir=dist-newstyle-ghcjs --project-file=cabal.ghcjs.project all
|
|
|
|
|
|
|
|
packdeps :
|
|
|
|
packdeps */*.cabal
|
2020-01-09 21:19:24 +01:00
|
|
|
|
|
|
|
doctest : doctest-servant doctest-servant-server
|
|
|
|
perl -i -e 'while (<ARGV>) { print unless /package-id\s+base-compat-\d+(\.\d+)*/; }' .ghc.environment.*
|
|
|
|
|
|
|
|
doctest-servant :
|
|
|
|
(cd servant && doctest src)
|
|
|
|
(cd servant && doctest test/Servant/LinksSpec.hs)
|
|
|
|
|
|
|
|
doctest-servant-server :
|
|
|
|
(cd servant-server && doctest src)
|