forked from haskell-CI/haskell-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (21 loc) · 971 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
HC ?= ghc-9.8.2
build :
cabal v2-build -w $(HC)
self-test :
cabal v2-run -w $(HC) haskell-ci -- --config=cabal.haskell-ci haskell-ci.cabal
ghcid :
ghcid -c 'cabal v2-repl -w $(HC)'
install:
cabal v2-install -w $(HC) haskell-ci:exe:haskell-ci --overwrite-policy=always
install-dev : build
cp $$(cabal-plan list-bin haskell-ci) $(HOME)/.cabal/bin/haskell-ci
test : build
cabal v2-run -w $(HC) golden
accept : build
cabal v2-run -w $(HC) golden -- --accept
(cd cabal-install-parsers && cabal v2-run -w $(HC) cabal-parsers-golden -- --accept)
doctest :
perl -i -e 'while (<ARGV>) { print unless /package-id\s+(base-compat-batteries|bs-cmpt-bttrs)-\d+(\.\d+)*/; }' .ghc.environment.*
doctest --fast -XBangPatterns -XScopedTypeVariables -XDerivingStrategies -XGeneralizedNewtypeDeriving -XDeriveAnyClass -XNoImplicitPrelude -XDeriveFunctor -XDeriveFoldable -XDeriveTraversable -XDeriveGeneric src
regenerate :
cabal v2-run -w $(HC) -- haskell-ci regenerate