From: Randy Date: Mon, 9 Mar 2020 16:13:03 +0000 (-0500) Subject: Update Makefile to remove old destination folder X-Git-Tag: v1.11~7 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=04e625042b8fc022578ffc2ba903176ccc5616a3;p=users%2Fhch%2Fnvme-cli.git Update Makefile to remove old destination folder --- diff --git a/Makefile b/Makefile index 1a1753e..1b3e21a 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ HAVE_SYSTEMD = $(shell pkg-config --exists libsystemd --atleast-version=232; ec NVME = nvme INSTALL ?= install DESTDIR = +DESTDIROLD = /usr/local/sbin PREFIX ?= /usr SYSCONFDIR = /etc SBINDIR = $(PREFIX)/sbin @@ -115,6 +116,7 @@ install-man: $(MAKE) -C Documentation install-no-build install-bin: default + $(RM) $(DESTDIROLD)/nvme $(INSTALL) -d $(DESTDIR)$(SBINDIR) $(INSTALL) -m 755 nvme $(DESTDIR)$(SBINDIR)