18 lines
285 B
Makefile
18 lines
285 B
Makefile
.PHONY: run
|
|
|
|
INSTALL_DIR = $(HOME)/.local/bin
|
|
|
|
export PATH := target/debug:$(PATH)
|
|
|
|
build:
|
|
@cargo build
|
|
|
|
run: build
|
|
./ts-control
|
|
|
|
install:
|
|
mkdir -p "$(INSTALL_DIR)"
|
|
cargo build --release
|
|
install -Dm755 -t "$(INSTALL_DIR)" \
|
|
./target/release/teamspeak-query-lib \
|
|
./ts-control
|