2017-12-13 09:28:35 -06:00
|
|
|
CARGO = cargo +$(TOOLCHAIN)
|
|
|
|
TOOLCHAIN = nightly
|
2017-12-09 12:58:35 -06:00
|
|
|
|
|
|
|
.PHONY: all bench build check clean doc install publish run test update
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
bench:
|
|
|
|
@$(CARGO) bench
|
|
|
|
|
|
|
|
build:
|
2017-12-13 09:28:35 -06:00
|
|
|
@env TERM=xterm-256color $(CARGO) build --color=always 2>&1 && rm -f cargo.out || $(CARGO) build 2> cargo.out
|
2017-12-09 12:58:35 -06:00
|
|
|
|
|
|
|
check: build test
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@$(CARGO) clean
|
|
|
|
|
|
|
|
doc:
|
|
|
|
@$(CARGO) doc
|
|
|
|
|
|
|
|
install:
|
|
|
|
@$(CARGO) install
|
|
|
|
|
|
|
|
publish:
|
|
|
|
@$(CARGO) publish
|
|
|
|
|
|
|
|
run: build
|
|
|
|
@$(CARGO) run
|
|
|
|
|
|
|
|
test:
|
|
|
|
@$(CARGO) test
|
|
|
|
|
|
|
|
update:
|
|
|
|
@$(CARGO) update
|