Refactoring makefile. Dynamic targets.