You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
309 B

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 $@