Update how we remove files.
authorBrian Aker <brian@tangent.org>
Sun, 9 Feb 2014 12:04:13 +0000 (04:04 -0800)
committerBrian Aker <brian@tangent.org>
Sun, 9 Feb 2014 12:04:13 +0000 (04:04 -0800)
rpm/include.mk

index 27b6bd0e89811a3aedac938d7940edfa8e290203..e69164599c41e25956af0d69bb270d09611dd615 100644 (file)
@@ -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)