restructured local.make to be easier to copy to other projects