From fd893650c8d4c04efca49ab09d7923c2c0e81073 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sun, 9 Feb 2014 04:04:13 -0800 Subject: [PATCH] Update how we remove files. --- rpm/include.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rpm/include.mk b/rpm/include.mk index 27b6bd0e..e6916459 100644 --- a/rpm/include.mk +++ b/rpm/include.mk @@ -25,10 +25,11 @@ $(DIST_ARCHIVES): $(DISTFILES) $(MAKE) $(AM_MAKEFLAGS) dist-gzip $(RPM_SOURCE): | $(RPM_BUILDDIR) $(DIST_ARCHIVES) - @rm -f $(BUILD_RPMS) $(BUILD_SRPMS) $(BUILD_RPM_DIR) @cp $(DIST_ARCHIVES) $(RPM_SOURCE) $(RPM_BUILD_TARGET): $(RPM_SOURCE) support/@PACKAGE@.spec + -@rm -f $(BUILD_RPMS) $(BUILD_SRPMS) + -@rm -rf $(BUILD_RPM_DIR) @@RPMBUILD@ -ba $(top_srcdir)/support/@PACKAGE@.spec @cp $(BUILD_RPMS) $(BUILD_SRPMS) . @@ -39,7 +40,8 @@ rpm-sign: $(RPM_BUILD_TARGET) .PHONY: clean-rpm clean-rpm: - -@rm -f $(BUILD_RPMS) $(BUILD_SRPMS) $(BUILD_RPM_SOURCE) $(BUILD_RPM_DIR) $(RPM_DIST) + -@rm -f $(BUILD_RPMS) $(BUILD_SRPMS) $(BUILD_RPM_SOURCE) $(RPM_DIST) + -@rm -rf $(BUILD_RPM_DIR) rpm: $(RPM_BUILD_TARGET) dist-rpm: $(RPM_BUILD_TARGET) -- 2.30.2