]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Makefile: fixed DESTDIR in rpm target
authorHarald Hoyer <harald@redhat.com>
Mon, 7 Nov 2016 16:52:09 +0000 (17:52 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 7 Nov 2016 16:52:09 +0000 (17:52 +0100)
Makefile

index 4cab7d5fe8927a83147f3a9a18c61bfce00f3224..c5afc1aaca9ca418d0ddf77ed1d23f860df5553a 100644 (file)
--- 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 $(DESTDIR)/.; mv "$$rpmbuild"/*.src.rpm $(DESTDIR)/.;rm -fr -- "$$rpmbuild"; ls $(DESTDIR)/*.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 \