From: Niki Roo Date: Sun, 30 Jun 2024 10:37:32 +0000 (+0200) Subject: makefile X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=27a458a06c1da27f077b67f1650e46b44c040c74;p=cbook.git makefile --- diff --git a/src/cbook/makefile.d b/src/cbook/makefile.d index 54085c1..87654a0 100644 --- a/src/cbook/makefile.d +++ b/src/cbook/makefile.d @@ -60,3 +60,11 @@ mrpropre: clean rm -f $(dstdir)/$(NAME) rmdir $(dstdir) 2>/dev/null || true +install: + mkdir -p "$(PREFIX)/bin" + cp $(dstdir)/$(NAME) "$(PREFIX)/bin/" + +uninstall: + rm "$(PREFIX)/bin/$(NAME)" + rmdir "$(PREFIX)/bin" 2>/dev/null +