diff --git a/contrib/gen_html/Makefile b/contrib/gen_html/Makefile
index 26e870399..f93669e02 100644
--- a/contrib/gen_html/Makefile
+++ b/contrib/gen_html/Makefile
@@ -40,7 +40,7 @@ gen_html: gen_html.cpp
$(ZSTDMANUAL): gen_html $(ZSTDAPI)
echo "Update zstd manual in /doc"
- ./gen_html $(LIBVER) $(ZSTDAPI) $(ZSTDMANUAL)
+ ./gen_html$(EXT) $(LIBVER) $(ZSTDAPI) $(ZSTDMANUAL)
.PHONY: manual
manual: gen_html $(ZSTDMANUAL)