From 24aa55fdacd29246e871ef25db64a98f2bd9e521 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Thu, 31 Jan 2019 16:55:40 -0600 Subject: [PATCH] MAINT: add to the publish target in Makefile also make some of the targets a little more robust to re-running. --- Makefile | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 42a309b..1352eb1 100644 --- a/Makefile +++ b/Makefile @@ -5,17 +5,27 @@ build: test: stdlibtest -unit: - cargo test +rustfiles := $(find . -type f -name '*.rs') +stdlibfiles := $(find std -type f -name '*.ucg) -integration: unit - cargo run -- test -r integration_tests +unittest.log: $(rustfiles) + cargo test | tee unittest.log -stdlibtest: integration - cargo run -- test -r std/tests +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 install: test cargo install --path . --force publish: build test - cargo publish \ No newline at end of file + cargo publish + (cd docsite; make deploysite) \ No newline at end of file