summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2011-08-11 11:35:21 +0200
committerHarald Hoyer <harald@redhat.com>2011-08-11 14:27:25 +0200
commite7b877427b4bb723d4b3271fc939d804bb5393df (patch)
treea3c29f54a350ef5364e07f9d755d39f5c5092037 /Makefile
parentf295392724f71d410121783cc846cd4603b2f1c2 (diff)
downloaddracut-e7b877427b4bb723d4b3271fc939d804bb5393df.tar.gz
dracut-e7b877427b4bb723d4b3271fc939d804bb5393df.tar.bz2
dracut-e7b877427b4bb723d4b3271fc939d804bb5393df.zip
Makefile: do not remove rpmbuild on fail
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b9eb852b..7cafbc63 100644
--- a/Makefile
+++ b/Makefile
@@ -71,9 +71,8 @@ rpm: dracut-$(VERSION).tar.bz2
cd rpmbuild; ../git2spec.pl $(VERSION) < ../dracut.spec > dracut.spec; \
rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" \
--define "_specdir $$PWD" --define "_srcrpmdir $$PWD" \
- --define "_rpmdir $$PWD" -ba dracut.spec || :; \
- cd ..;
- mv rpmbuild/noarch/*.rpm .; mv rpmbuild/*.src.rpm .;rm -fr rpmbuild; ls *.rpm
+ --define "_rpmdir $$PWD" -ba dracut.spec && \
+ ( cd ..; mv rpmbuild/noarch/*.rpm .; mv rpmbuild/*.src.rpm .;rm -fr rpmbuild; ls *.rpm )
syncheck:
@ret=0;for i in dracut-logger modules.d/99base/init modules.d/*/*.sh; do \