correct makefile to make profiles correctly