diff --git a/Makefile b/Makefile
index 56efaf5eb..2e93bcc8d 100644
--- a/Makefile
+++ b/Makefile
@@ -143,6 +143,7 @@ endif
 endif
 
 YOSYS_VER := 0.40+50
+export YOSYS_VER
 
 # Note: We arrange for .gitcommit to contain the (short) commit hash in
 # tarballs generated with git-archive(1) using .gitattributes. The git repo