forked from gleam-lang/gleam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (20 loc) · 623 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
#
# Goals to be specified by user
#
.PHONY: help
help:
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: build
build: ## Build the compiler
cargo build --release
.PHONY: install
install: ## Build the Gleam compiler and place it on PATH
cargo install --path . --force
.PHONY: test ## Run all tests
test:
cargo test
.PHONY: test-watch
test-watch: ## Run compiler tests when files change
watchexec -e rs,lalrpop,html "echo; cargo test; echo; echo"
# Debug print vars with `make print-VAR_NAME`
print-%: ; @echo $*=$($*)