I have never used HP-UX, but on FreeBSD when I get these kind of errors it's invariably the version of make that is installed. BSD systems (and I think HP-UX is based on BSD) use the BSDMake (or pmake) program, whereas Linux uses Gnu Make.
You may like to try installing Gnu Make first and then using that to compile git.