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

  1. RUST_SRC=$(wildcard **/*.rs)
  2. all: tt
  3. install: tt
  4. ifeq ($$EUID, 0)
  5. @install --mode=0755 --verbose tt /usr/local/bin
  6. else
  7. @install --mode=0755 --verbose tt $$HOME/.local/bin
  8. endif
  9. tt: target/release/tt
  10. @cp $< $@
  11. target/release/tt: $(RUST_SRC)
  12. cargo build --release
  13. # remove debug information
  14. strip $@