ucg/Makefile

36 lines
670 B
Makefile
Raw Normal View History

2019-02-05 18:50:44 -06:00
SHELL = /bin/bash -o pipefail
all: test build
build:
cargo build
2019-01-15 19:33:08 -06:00
test: stdlibtest
rustfiles := $(find . -type f -name '*.rs')
stdlibfiles := $(find std -type f -name '*.ucg)
unittest.log: $(rustfiles)
cargo test | tee unittest.log
unit: unittest.log
integration.log: unit
cargo run -- test -r integration_tests | tee integration.log
integration: integration.log
stdlibtest.log: $(stdlibfiles)
cargo run -- test -r std/tests | tee stdlibtest.log
stdlibtest: stdlibtest.log integration
2019-01-15 19:33:08 -06:00
install: test
2019-01-19 13:18:06 -06:00
cargo install --path . --force
publish: build test
cargo publish
2019-02-05 18:50:44 -06:00
(cd docsite; make deploysite)
clean:
rm -f integration.log stdlibtest.log unittest.log