Integrate install.sh into Makefile
This commit is contained in:
parent
1002782e8f
commit
e87bed00a2
2 changed files with 8 additions and 12 deletions
8
Makefile
8
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
|
||||
|
|
12
install.sh
12
install.sh
|
@ -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
|
Loading…
Reference in a new issue