add and update makefiles and mkinstalldir scripts