[PATCH] Use gzip -f when building the git-core tarball
[git.git] / Makefile
index 4bc3665..cf162a9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,7 @@ bin=$(prefix)/bin
 CC=gcc
 AR=ar
 INSTALL=install
+RPMBUILD=rpmbuild
 
 #
 # sparse is architecture-neutral, which means that we need to tell it
@@ -183,10 +184,10 @@ dist: git-core.spec git-tar-tree
        @cp git-core.spec $(GIT_TARNAME)
        tar rf $(GIT_TARNAME).tar $(GIT_TARNAME)/git-core.spec
        @rm -rf $(GIT_TARNAME)
-       gzip -9 $(GIT_TARNAME).tar
+       gzip -f -9 $(GIT_TARNAME).tar
 
 rpm: dist
-       rpmbuild -ta git-core-$(GIT_VERSION).tar.gz
+       $(RPMBUILD) -ta git-core-$(GIT_VERSION).tar.gz
 
 test: all
        $(MAKE) -C t/ all