...
diff --git a/Makefile.am b/Makefile.am
index a19a2ff..461dc65 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -369,11 +369,12 @@
 
 .PHONY: rpm
 rpm:	dist
+	rm -rf $(RPMDIR)
 	$(MKDIR_P) $(RPMDIR)
 	$(MKDIR_P) $(RPMDIR)/BUILD
 	$(MKDIR_P) $(RPMDIR)/RPMS
 	$(RPM) --define="_sourcedir `pwd`" --define="_rpmdir `pwd`/$(RPMDIR)/RPMS" --define="_builddir `pwd`/$(RPMDIR)/BUILD" --nodeps -bb ImageMagick.spec
-	rm -rf $(RPMDIR)
+	rm -rf rpmbuild
 	@echo ==============================================================
 	@echo $(DIST_ARCHIVE_RPM) is ready for distribution.
 	@echo ==============================================================