RUST_SRC=$(wildcard **/*.rs)
|
|
|
|
all: tt
|
|
|
|
install: tt
|
|
ifeq ($$EUID, 0)
|
|
@install --mode=0755 --verbose tt /usr/local/bin
|
|
else
|
|
@install --mode=0755 --verbose tt $$HOME/.local/bin
|
|
endif
|
|
|
|
tt: target/release/tt
|
|
@cp $< $@
|
|
|
|
target/release/tt: $(RUST_SRC)
|
|
cargo build --release
|
|
# remove debug information
|
|
strip $@
|