make: fix repeating tasks, added rule for folders