translate makefile plus a minor fix