serene-rust-implementation/Makefile

25 lines
449 B
Makefile

THIS_DIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
.PHONY: lint
lint:
cd $(THIS_DIR)/bootstrap && cargo fmt -- --check
.PHONY: test-bootstrap
test-bootstrap:
cd $(THIS_DIR)/bootstrap && cargo test
.PHONY: test
test: test-bootstrap
.PHONY: clean-bootstrap
clean-bootstrap:
cd $(THIS_DIR)/bootstrap && cargo clean
.PHONY: bootstrap-repl
bootstrap-repl:
cd $(THIS_DIR)/bootstrap && cargo run repl
.PHONY: clean
clean: clean-bootstrap