hfingerd

hhvn.uk:79
Log | Files | Refs | LICENSE

commit 112a21533721c7a7e85873c9dd131956c507d350
parent 4b126d27d7dfa1856d0dd416d892dd7c3498076b
Author: hhvn <dev@hhvn.uk>
Date:   Sun,  6 Jun 2021 00:09:36 +0100

makefile: add install/uninstall targets

Diffstat:
Mmakefile | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/makefile b/makefile @@ -1,3 +1,4 @@ +PREFIX = /usr/local CC ?= cc OBJ = main.o handler.o BIN = hfingerd @@ -10,3 +11,9 @@ $(BIN): $(OBJ) clean: rm $(BIN) $(OBJ) + +install: + install -m0755 $(BIN) $(PREFIX)/bin/$(BIN) + +uninstall: + -rm $(PREFIX)/bin/$(BIN)