-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 812 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: all build clean configure haddock install repl run tags
shell = '$$SHELL'
all: install configure build haddock tags
build:
cabal build --jobs
clean: nix-clean
cabal clean
-rm -f *.tix
if test -d .cabal-sandbox; then cabal sandbox delete; fi
if test -d .hpc; then rm -r .hpc; fi
configure:
cabal configure
haddock: configure
cabal haddock --hyperlink-source
install:
cabal sandbox init
cabal install --jobs --only-dependencies --reorder-goals
nix-clean:
if test -e default.nix; then rm default.nix; fi
if test -e shell.nix; then rm shell.nix; fi
nix-init: clean
cabal2nix --shell . > shell.nix;
cabal2nix . > default.nix;
nix-shell: nix-init
nix-shell --command 'make install && $(shell)'
make clean
repl:
cabal repl lib:qdoc2psn
run:
cabal run --jobs .
tags:
hasktags -e .