mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
MAINT: add to the publish target in Makefile
also make some of the targets a little more robust to re-running.
This commit is contained in:
parent
68759dadd3
commit
24aa55fdac
24
Makefile
24
Makefile
@ -5,17 +5,27 @@ build:
|
|||||||
|
|
||||||
test: stdlibtest
|
test: stdlibtest
|
||||||
|
|
||||||
unit:
|
rustfiles := $(find . -type f -name '*.rs')
|
||||||
cargo test
|
stdlibfiles := $(find std -type f -name '*.ucg)
|
||||||
|
|
||||||
integration: unit
|
unittest.log: $(rustfiles)
|
||||||
cargo run -- test -r integration_tests
|
cargo test | tee unittest.log
|
||||||
|
|
||||||
stdlibtest: integration
|
unit: unittest.log
|
||||||
cargo run -- test -r std/tests
|
|
||||||
|
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
|
||||||
|
|
||||||
install: test
|
install: test
|
||||||
cargo install --path . --force
|
cargo install --path . --force
|
||||||
|
|
||||||
publish: build test
|
publish: build test
|
||||||
cargo publish
|
cargo publish
|
||||||
|
(cd docsite; make deploysite)
|
Loading…
x
Reference in New Issue
Block a user