Makefile

 1.PHONY: build test check format install clean help
 2
 3PREFIX ?= $(HOME)/.local
 4
 5build:
 6	gleam build
 7
 8test:
 9	gleam test
10
11check:
12	gleam format --check
13
14format:
15	gleam format
16
17install: build
18	gleam run -m gleescript -- --out=$(PREFIX)/bin
19
20clean:
21	rm -rf build
22
23help:
24	@echo "Usage: make [target]"
25	@echo ""
26	@echo "Targets:"
27	@echo "  build    Build the project"
28	@echo "  test     Run tests"
29	@echo "  check    Check formatting"
30	@echo "  format   Format source files"
31	@echo "  install  Install to PREFIX/bin (default: ~/.local/bin)"
32	@echo "  clean    Remove build artifacts"
33	@echo "  help     Show this help"
34	@echo ""
35	@echo "Variables:"
36	@echo "  PREFIX   Installation prefix (default: ~/.local)"