diff --git a/.gitignore b/.gitignore
index 344c8c3c3f1acbf4cd1d8545b3f364efbc229238..90fc50881d4dbafcd9a6a58c0a50bdbda0ab6dee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ target
 /testdata
 *.spec
 *.src.rpm
+/rpms/*
\ No newline at end of file
diff --git a/Makefile b/Makefile
index 98bbc414ea8ab7a7a02b96bc7732a998ce66b921..a7c80906fec7c8e53eb8b68f8ed9e1a1bf16ad36 100644
--- a/Makefile
+++ b/Makefile
@@ -34,3 +34,4 @@ clean:
 distclean: clean
 	rm -rf target
 	rm -f rust-hashtoc.spec
+	rm -f rpms/*.rpm