replace much manual install code with make install