outsource make install and cpack code