2018-11-21 04:32:23 +00:00
|
|
|
ifeq (test, $(firstword $(MAKECMDGOALS)))
|
|
|
|
runargs := $(wordlist 2, $(words $(MAKECMDGOALS)), $(MAKECMDGOALS))
|
|
|
|
$(eval $(runargs):;@true)
|
|
|
|
endif
|
|
|
|
|
2018-10-23 21:54:07 +00:00
|
|
|
.PHONY: spectests clean build install
|
|
|
|
|
|
|
|
# This will re-generate the Rust test files based on spectests/*.wast
|
|
|
|
spectests:
|
|
|
|
WASM_GENERATE_SPECTESTS=1 cargo build
|
|
|
|
|
|
|
|
# clean:
|
2018-11-13 18:28:50 +00:00
|
|
|
# rm -rf artifacts
|
2018-10-23 21:54:07 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
cargo build
|
|
|
|
|
|
|
|
install:
|
|
|
|
cargo install --path .
|
|
|
|
|
|
|
|
test:
|
2018-11-24 18:52:17 +00:00
|
|
|
cargo test -- $(runargs)
|
2018-11-13 18:28:50 +00:00
|
|
|
|
|
|
|
release:
|
|
|
|
# If you are in OS-X, you will need mingw-w64 for cross compiling to windows
|
|
|
|
# brew install mingw-w64
|
|
|
|
cargo build --release
|
|
|
|
|
2018-11-26 19:47:33 +00:00
|
|
|
debug-release:
|
|
|
|
cargo build --release --features "debug"
|
|
|
|
|
2018-11-13 18:28:50 +00:00
|
|
|
publish-release:
|
|
|
|
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
|