summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-10-05 20:26:21 +0200
committerLouis Burda <quent.burda@gmail.com>2022-10-05 20:26:21 +0200
commitcbe855db3e1ba0219ef019e703131b0533db8f09 (patch)
treee79435e6e075adac4d9affb0f219df886abacdd0
parenta35e97a83059d83497c0cadaa6d807d18b621edd (diff)
downloadhex-cbe855db3e1ba0219ef019e703131b0533db8f09.tar.gz
hex-cbe855db3e1ba0219ef019e703131b0533db8f09.zip
Fix Makefile
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d3f3510..775c44c 100644
--- 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