-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (39 loc) · 1.19 KB
/
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
46
47
48
49
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
help:
@echo "Usage:"
@sed -n "s/^##//p" ${MAKEFILE_LIST} | column -t -s ":" | sed -e "s/^/ /"
# ==================================================================================== #
# QUALITY CONTROL
# ==================================================================================== #
## audit: run quality control checks
.PHONY: audit
audit: test
@find src -name '*.hs' | xargs ormolu --mode check
@hlint src
## test: run all tests
.PHONY: test
test:
@stack test
# ==================================================================================== #
# DEVELOPMENT
# ==================================================================================== #
## format: format code using ormolu
format:
@find . -name '*.hs' | xargs ormolu -i
## build: build the app
.PHONY: build
build:
@stack build
## run: run the app
.PHONY: run
run: build
@stack run
## clean: clean all build files
.PHONY: clean
clean:
@stack clean
# vim: set tabstop=4 shiftwidth=4 noexpandtab