mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
31 lines
489 B
Makefile
31 lines
489 B
Makefile
SHELL = /bin/bash -o pipefail
|
|
|
|
all: test build
|
|
|
|
build:
|
|
cargo build
|
|
|
|
test: unit integration stdlibtest
|
|
|
|
rustfiles := $(find . -type f -name '*.rs')
|
|
stdlibfiles := $(find std -type f -name '*.ucg')
|
|
|
|
|
|
unit:
|
|
cargo test
|
|
|
|
integration:
|
|
cargo run -- test -r integration_tests
|
|
|
|
stdlibtest:
|
|
cargo run -- test -r std/tests
|
|
|
|
install: test
|
|
cargo install --path . --force
|
|
|
|
publish: build test
|
|
cargo publish
|
|
(cd docsite; make deploysite)
|
|
|
|
clean:
|
|
rm -f integration.log stdlibtest.log unittest.log
|