[dev] Improvements to bamr/makefile.