diff --git a/mingw/Makefile b/mingw/Makefile
index 2feda4aefe1e4058470975e0c3c73e070c8ec145..46fa347b1c7f674c1fa21503f5474e41d3110474 100644
--- a/mingw/Makefile
+++ b/mingw/Makefile
@@ -88,7 +88,8 @@ ssl_BUILD: $(ssl_DIR)
 # CROSS_COMPILE="i686-w64-mingw32-" ./Configure mingw no-asm no-shared --prefix=$PWD/mingw && make depend && make -j8 && make install
 
 # Package the binaries.
-DIST := opusfile-0.8-f25docker-win32
+DIST_VERSION := $(shell git describe --dirty)
+DIST := opusfile-$(DIST_VERSION)-f25docker-win32
 package: $(DIST).zip
 
 $(DIST).zip: $(DIST)