Factor out prefix= into common make opts