convert to automake
cleanup