diff --git a/Makefile b/Makefile index 318c7c9..a45ec9f 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,16 @@ .PHONY: run +INSTALL_DIR = $(HOME)/.local/bin + build: @cargo build run: build @PATH=$(PWD)/target/debug:$(PATH) ./ts-control +install: + mkdir -p "$(INSTALL_DIR)" + cargo build --release + install -Dm755 -t "$(INSTALL_DIR)" \ + ./target/release/teamspeak-query-lib \ + ./ts-control diff --git a/install.sh b/install.sh deleted file mode 100755 index 66e18b8..0000000 --- a/install.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env sh - -set -e - -INSTALL_DIR="${INSTALL_DIR:-$HOME/.local/bin}" - -mkdir -p "$INSTALL_DIR" -cargo build --release - -install -Dm755 -t "$INSTALL_DIR" \ - ./target/release/teamspeak-query-lib \ - ./ts-control