Fixed bug in makefile not using placeholders

Fixed bug in makefile and improved build-info generation