diff --git a/generator/Makefile b/generator/Makefile
index 8a29c54a7cd603fc3dbde1d60935c619ddf85fc0..abc5ea4ffaf25f65f8c3d4d5bcea60d27082feff 100644
--- a/generator/Makefile
+++ b/generator/Makefile
@@ -15,7 +15,7 @@ OCAMLBUILD  := ocamlbuild -j 4 -classic-display -use-ocamlfind
 # Used for stdlib and generator dependency generation
 CC          := ocamlc -c
 OCAMLDEP    := ocamldep -one-line
-DEPSED      := sed -e "s/cmo/log.js/; s/cmo/cmi/g; /cmx/ d"
+DEPSED      := sed -e "s/cmo/log.js/; s/cmo/cmi/g; s/cmx/cmi/g"
 
 all: main.byte