findhex

Hex pattern matcher
git clone https://git.sinitax.com/sinitax/findhex
Log | Files | Refs | LICENSE | sfeed.txt

commit 2e7caa3edbc35e7660d44e863588fa4c1c4870a7
parent fda2cdb74759d14a9c9c0644fb6e5bd2505e2639
Author: Louis Burda <quent.burda@gmail.com>
Date:   Wed, 15 Feb 2023 23:21:19 +0100

Add install and uninstall targets

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

diff --git a/Makefile b/Makefile @@ -1,3 +1,6 @@ +PREFIX ?= /usr/local +BINDIR ?= /bin + CFLAGS = -Wunused-variable -Wunused-function all: findhex @@ -7,4 +10,10 @@ clean: findhex: findhex.c -.PHONY: all clean +install: + install -m755 findhex -t "$(DESTDIR)$(PREFIX)$(BINDIR)" + +uninstall: + rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/findhex" + +.PHONY: all clean install uninstall