Optimise makefile