forked from tchoutri/pg-entity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (23 loc) · 864 Bytes
/
Makefile
File metadata and controls
35 lines (23 loc) · 864 Bytes
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
deps: ## Install the dependencies of the backend
@cabal build --only-dependencies
build: ## Build the project in fast mode
@cabal build -O0
clean: ## Remove compilation artifacts
@cabal clean
repl: ## Start a REPL
@cabal repl
test: ## Run the test suite
@cabal test
lint: ## Run the code linter (HLint)
@find test src -name "*.hs" | parallel -j $(PROCS) -- hlint --refactor-options="-i" --refactor {}
style: ## Run the code styler (stylish-haskell)
@stylish-haskell -i -r src test
docs-build: ## Generate the documentation
@cd docs; mkdocs build
docs-serve: ## Start a web server to serve the documentation
@cd docs; mkdocs serve
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.* ?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
PROCS := $(shell nproc)
.PHONY: all $(MAKECMDGOALS)
.DEFAULT_GOAL := help