diff --git a/Makefile b/Makefile
index a1fd7b4e42bf4d694e08dd3af82e8b883c1c39cc..2fe605ae66349f4a280444cd5b3ed1a84662df0e 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ HOSTPROGS  := $(TESTPROGS:%=tests/%)
 
 BASENAMES   = ffmpeg ffplay ffprobe ffserver
 ALLPROGS    = $(BASENAMES:%=%$(EXESUF))
-ALLPROGS_G  = $(BASENAMES:%=_g$(EXESUF))
+ALLPROGS_G  = $(BASENAMES:%=%_g$(EXESUF))
 ALLMANPAGES = $(BASENAMES:%=%.1)
 ALLHTMLPAGES= $(BASENAMES:%=%.html)