[#2051] cleaned up api makefiles