Integrate install.sh into Makefile

This commit is contained in:
Tobias Reisinger 2023-11-17 18:51:28 +01:00
parent 1002782e8f
commit e87bed00a2
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 8 additions and 12 deletions

View file

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

View file

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