forked from metaborg/ministatix.hs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 897 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
STACK ?= stack
SETUP_ARGS ?=
BUILD_ARGS ?= --test --no-run-tests --bench --no-run-benchmarks
RUN_ARGS ?=
TEST_ARGS ?=
BENCH_ARGS ?=
DOC_ARGS ?= --keep-going --open
CLEAN_ARGS ?= --full
GHCI_ARGS ?=
INSTALL_ARGS ?=
ARGS ?=
STACK_ARGS ?= --verbosity=warn
all: build
setup:
$(STACK) setup $(SETUP_ARGS) $(STACK_ARGS)
build: setup
$(STACK) build $(BUILD_ARGS) $(STACK_ARGS)
run: build
$(STACK) exec $(RUN_ARGS) $(STACK_ARGS) -- statix $(ARGS)
test: build
$(STACK) test $(TEST_ARGS) $(STACK_ARGS)
bench: build
$(STACK) bench $(BENCH_ARGS) $(STACK_ARGS)
doc:
$(STACK) haddock $(DOC_ARGS) $(STACK_ARGS)
clean:
$(STACK) clean $(CLEAN_ARGS) $(STACK_ARGS)
-rm statix.cabal
ghci:
$(STACK) ghci $(GHCI_ARGS) $(STACK_ARGS)
install:
$(STACK) install $(INSTALL_ARGS) $(STACK_ARGS)
.PHONY: all setup build run test bench doc clean ghci install
.SILENT: