From 1fc1ef0c1f17e1e3562941cf6da85cf6a5985e73 Mon Sep 17 00:00:00 2001 From: Steven Seungcheol Lee Date: Mon, 28 Sep 2020 17:23:22 +0900 Subject: [PATCH] rpmbuild: install directories using Makefile's variables rpmbuild cause error on the system which is using difference RPM macros Signed-off-by: Steven Seungcheol Lee --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 65afdbe0..c6e1e274 100644 --- a/Makefile +++ b/Makefile @@ -231,7 +231,10 @@ deb-light: $(NVME) pkg nvme.control.in dpkg-deb --build nvme-$(NVME_VERSION) rpm: dist - $(RPMBUILD) --define '_libdir ${LIBDIR}' -ta nvme-$(NVME_VERSION).tar.gz + $(RPMBUILD) --define '_prefix $(DESTDIR)$(PREFIX)' \ + --define '_libdir $(DESTDIR)${LIBDIR}' \ + --define '_sysconfdir $(DESTDIR)$(SYSCONFDIR)' \ + -ta nvme-$(NVME_VERSION).tar.gz .PHONY: default doc all clean clobber install-man install-bin install .PHONY: dist pkg dist-orig deb deb-light rpm FORCE test -- 2.50.1