A reader made an interesting comment in reply to an old post. I had experienced some problems running a make file included with the sample code for Joe Armstrong’s Programming Erlang.

Gijsbert de Haan wrote:

About your directory troubles, you might have to unset CDPATH. I have never taken the time to figure out why, but make and CDPATH don’t go well together (it’s like make/shell forgets to look in the current directory when it has a CDPATH.

I have not had a chance to look into it, but that sounds very plausible. Recorded for posterity. Thank you, Gijsbert.