don't make a copy of the original make file but create a makefile that includes the original makefile with the additional targets. see for example: https://github.com/openconnectivity/IOTivity-Lite-setup/blob/master/environment-changes/devbuildmake