Improve make system
Move make script outside macros directory
Split make script into separate files