commit 6f5dcfdc79879c216cf724d3723f8d2701e280d5 parent 8a8e88fc843e8b5f9ee57c542f3c512ca78286a6 Author: Louis Burda <quent.burda@gmail.com> Date: Wed, 5 Oct 2022 20:33:39 +0200 Fix Makefile Diffstat:
M | Makefile | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,5 +1,6 @@ DESTDIR ?= -BINDIR ?= /usr/local/bin +PREFIX ?= /usr/local +BINDIR ?= /bin all: bin unbin @@ -11,9 +12,9 @@ bin: bin.c unbin: unbin.c install: bin unbin - install -m755 $^ $(DESTDIR)$(BINDIR) + install -m755 $^ -t "$(DESTDIR)$(PREFIX)$(BINDIR)" uninstall: - rm -f $(DESTDIR)$(BINDIR)/{bin,unbin} + rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)"/{bin,unbin} .PHONY: all clean install uninstall