Forum OpenACS Q&A: Response to Makefile Help
Maybe you can actually put this code into your .sh file (since you seem to have one anyway!), and then just call make with these env vars already set appropriately?
Separate issue: does your tarball include Henry's internationalization patches, and/or an nsd.tcl with the parameters for them in place? Should it have that stuff in there?