-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
39 lines (28 loc) · 808 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
CABAL := $(shell cabal-dev --version > /dev/null && echo cabal-dev || echo cabal)
all: build test
.PHONY: all build dist install clean doc p test ghci
build: dist/setup-config
grep -E "$ " examples/Memo.md | sed 's/$ //' > examples/Memo.hs
$(CABAL) build
dist: build
cabal sdist
install: build
cabal install
test: build
$(CABAL) test
clean:
$(CABAL) clean
rm -rf cabal-dev/
dist/setup-config: daemons.cabal
# If you don't have all the necessary packages installed on the first
# run, run `cabal-dev install`.
$(CABAL) configure --enable-tests || $(CABAL) install --enable-tests
doc: build
$(CABAL) haddock
p:
permamake.sh $(shell find src/ -name '*.hs') \
$(shell find test/ -name '*.hs') \
*.cabal \
Makefile
ghci: build
cabal-dev ghci