From: Harald Hoyer Date: Mon, 7 Nov 2016 12:14:49 +0000 (+0100) Subject: Makefile: create rpms in DESTDIR for target rpm X-Git-Tag: 045~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d274f93654f85b9c52aae02e733f901ff69b97f;p=thirdparty%2Fdracut.git Makefile: create rpms in DESTDIR for target rpm --- diff --git a/Makefile b/Makefile index d28e4cfed..4cab7d5fe 100644 --- a/Makefile +++ b/Makefile @@ -211,7 +211,7 @@ rpm: dracut-$(VERSION).tar.xz syncheck rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" \ --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" \ --define "_rpmdir $$PWD" -ba dracut.spec; ) && \ - ( mv "$$rpmbuild"/$$(arch)/*.rpm .; mv "$$rpmbuild"/*.src.rpm .;rm -fr -- "$$rpmbuild"; ls *.rpm ) + ( mv "$$rpmbuild"/$$(arch)/*.rpm $(DESTDIR)/.; mv "$$rpmbuild"/*.src.rpm $(DESTDIR)/.;rm -fr -- "$$rpmbuild"; ls $(DESTDIR)/*.rpm ) syncheck: @ret=0;for i in dracut-initramfs-restore.sh modules.d/*/*.sh; do \