implementing builddirectory into makefile