Divide tasks of Makefile into smaller pieces