commit cbe855db3e1ba0219ef019e703131b0533db8f09
parent a35e97a83059d83497c0cadaa6d807d18b621edd
Author: Louis Burda <quent.burda@gmail.com>
Date: Wed, 5 Oct 2022 20:26:21 +0200
Fix Makefile
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,5 +1,5 @@
-PREFIX ?=
-BINDIR ?= /usr/local/bin
+PREFIX ?= /usr/local
+BINDIR ?= /bin
all: hex hexv unhex
@@ -13,9 +13,9 @@ hexv: hexv.c
unhex: unhex.c
install: hexv hex unhex
- install -m755 $^ $(DESTDIR)$(BINDIR)
+ install -m755 $^ -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
uninstall:
- rm -f $(DESTDIR)$(BINDIR)/{hexv,hex,unhex}
+ rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)"/{hexv,hex,unhex}
.PHONY: all clean install uninstall