Skip to content

Commit ab3d129

Browse files
committed
Packages: do not clean up rpm build root.
These directories are used in the Makefile to determine status of a target.
1 parent 24d4dda commit ab3d129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/rpm/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ rpmbuild/SOURCES/unit-$(VERSION).tar.gz:
184184

185185
unit: check-build-depends-unit rpmbuild/SPECS/unit.spec rpmbuild/SOURCES/unit-$(VERSION).tar.gz
186186
@echo "===> Building $@ package" ; \
187-
rpmbuild -D "_topdir `pwd`/rpmbuild" -ba rpmbuild/SPECS/unit.spec && \
187+
rpmbuild -D "_topdir `pwd`/rpmbuild" -ba --noclean rpmbuild/SPECS/unit.spec && \
188188
ln -s rpmbuild/BUILD/$@-$(VERSION)/build $@
189189

190190
rpmlint:
@@ -235,7 +235,7 @@ rpmbuild/SPECS/unit-%.spec: unit.module.spec.in ../../docs/changes.xml | rpmbuil
235235

236236
unit-%: check-build-depends-% rpmbuild/SPECS/unit-%.spec rpmbuild/SOURCES/unit-$(VERSION).tar.gz
237237
@echo "===> Building $(subst _,-,$@) package" ; \
238-
rpmbuild -D "_topdir `pwd`/rpmbuild" -ba rpmbuild/SPECS/$@.spec && \
238+
rpmbuild -D "_topdir `pwd`/rpmbuild" -ba --noclean rpmbuild/SPECS/$@.spec && \
239239
ln -s rpmbuild/BUILD/$(subst _,-,$@)-$(VERSION)/build $@
240240

241241
test: unit modules

0 commit comments

Comments
 (0)