Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

gleam / Makefile
2.2 kB 67 lines
1# 2# Goals to be specified by user 3# 4 5.PHONY: help 6help: 7 @cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' 8 9.PHONY: build 10build: ## Build the compiler 11 cargo build --release 12 13.PHONY: install 14install: ## Build the Gleam compiler and place it on PATH 15 cd gleam-bin && cargo install --path . --force --locked 16 17.PHONY: test 18test: ## Run the compiler unit tests 19 cargo test --quiet 20 cargo clippy 21 cd test/language && make 22 cd test/javascript_prelude && make test 23 cd test/project_erlang && cargo run clean && cargo run check && cargo run test 24 cd test/project_javascript && cargo run clean && cargo run check && cargo run test 25 cd test/project_deno && cargo run clean && cargo run check && cargo run test 26 cd test/hextarball && make test 27 cd test/running_modules && make test 28 cd test/subdir_ffi && make 29 30.PHONY: insta-check-unused 31insta-check-unused: ## Check for unused cargo insta snapshots 32 cargo insta test --unreferenced=warn 33 34.PHONY: insta-fix-unused 35insta-fix-unused: ## Remove unused cargo insta snapshots 36 cargo insta test --unreferenced=delete 37 38.PHONY: language-test 39language-test: ## Run the language integration tests for all targets 40 cd test/language && make 41 42.PHONY: language-test-watch 43language-test-watch: ## Run the language integration tests for all targets when files change 44 watchexec "cd test/language && make" 45 46.PHONY: javascript-prelude-test 47javascript-prelude-test: ## Run the JavaScript prelude core tests 48 cd test/javascript_prelude && make test 49 50.PHONY: javascript-prelude-test-watch 51javascript-prelude-test-watch: ## Run the JavaScript prelude core tests when files change 52 watchexec "cd test/javascript_prelude && make test" 53 54.PHONY: test-watch 55test-watch: ## Run compiler tests when files change 56 watchexec -e rs,toml,gleam,html "cargo test --quiet" 57 58.PHONY: export-hex-tarball-test 59export-hex-tarball-test: ## Run `gleam export hex-tarball` and verify it is created 60 cd test/hextarball && make test 61 62.PHONY: benchmark 63benchmark: ## Run the benchmarks 64 cd benchmark/list && make 65 66# Debug print vars with `make print-VAR_NAME` 67print-%: ; @echo $*=$($*)