try
wget https://github.com/xmake-io/xmake/releases/download/v2.6.5/xmake-v2.6.5.tar.gz
tar xf xmake-v2.6.5.tar.gz
make build
we need not run `cd xmake`