diff --git a/includes/ghc.mk b/includes/ghc.mk
index f0bfbec0da6d743fafd1879cbc380558421240ae..c7cec6c948633c81e8579f66c5673d2449569f96 100644
--- a/includes/ghc.mk
+++ b/includes/ghc.mk
@@ -68,7 +68,7 @@ $(includes_H_VERSION) : mk/project.mk | $$(dir $$@)/.
 	  echo "#define __GLASGOW_HASKELL_PATCHLEVEL1__ $(ProjectPatchLevel1)" >> $@; \
 	fi
 	@if [ -n "$(ProjectPatchLevel2)" ]; then \
-	  echo "#define __GLASGOW_HASKELL_PATCHLEVEL1__ $(ProjectPatchLevel2)" >> $@; \
+	  echo "#define __GLASGOW_HASKELL_PATCHLEVEL2__ $(ProjectPatchLevel2)" >> $@; \
 	fi
 	@echo >> $@
 	@echo '#define MIN_VERSION_GLASGOW_HASKELL(ma,mi,pl1,pl2) (\\'     >> $@