1 2 3 4 5 6 7 8 9 10 11 12 13 14
.PHYNO: build build: cargo build TOKEN = .PHYNO: test test: ifeq ($(TOKEN),) @echo "Usage: make test TOKEN=<token>" else YUQUE_TOKEN=$(TOKEN) cargo test \ --package yuque \ --lib -- --exact --nocapture endif