Simplify makefile, avoid unnecessary builds