From: Steven Seungcheol Lee Date: Mon, 28 Sep 2020 08:23:22 +0000 (+0900) Subject: rpmbuild: install directories using Makefile's variables X-Git-Tag: v1.13~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1fc1ef0c1f17e1e3562941cf6da85cf6a5985e73;p=users%2Fsagi%2Fnvme-cli.git 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 --- 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