split targets and rules in makefile of programs