add lock to makefile