i3toolwait/Makefile

18 lines
337 B
Makefile
Raw Normal View History

2023-10-15 15:28:06 +02:00
EXEC := i3toolwait
2022-10-20 12:44:00 +02:00
INSTALL_BASE ?= /usr/local
2023-10-15 15:28:06 +02:00
default: target/debug/${EXEC}
release: target/release/${EXEC}
default: target/debug/${EXEC}
2022-10-20 12:44:00 +02:00
2023-10-15 15:28:06 +02:00
install: target/release/${EXEC}
install -Dm0755 -oroot -groot $< ${INSTALL_BASE}/bin/${EXEC}
2022-10-20 12:44:00 +02:00
2023-10-15 15:28:06 +02:00
target/release/${EXEC}:
@cargo build --release
target/debug/${EXEC}:
@cargo build
.PHONY: install