hex

Hex stream reader / writer
git clone https://git.sinitax.com/sinitax/hex
Log | Files | Refs | LICENSE | sfeed.txt

commit 37b7f2062cb792ff04aa424a88df8935639dff9f
parent 37dbb85cda6f5a92b89c22bb410943aa011a5852
Author: Louis Burda <quent.burda@gmail.com>
Date:   Fri, 16 Sep 2022 01:55:38 +0200

Add install and uninstall target

Diffstat:
MMakefile | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -1,4 +1,5 @@ -.PHONY: all clean +PREFIX ?= +BINDIR ?= /usr/local/bin all: hex hexv unhex @@ -10,3 +11,11 @@ hex: hex.c hexv: hexv.c unhex: unhex.c + +install: hexv hex unhex + install -m755 $^ $(DESTDIR)$(BINDIR) + +uninstall: + rm -f $(DESTDIR)$(BINDIR)/{hexv,hex,unhex} + +.PHONY: all clean install uninstall