Unable to run Makefile targets in Windows Subsystem for Linux (Ubuntu 18.04)

I feel I’ve tried everything but I feel I’m missing something really simple.. I’m trying to run a makefile from a project (which works fine on a Mac) on a Windows machine with WSL running but get a weird error.

I noticed the version of make in WSL is 0.8.1 which seemed old, so I’ve tried to upgrade to 3.81 with these steps:

wget http://ftp.gnu.org/gnu/make/make-3.81.tar.gz tarxvf make-3.81.tar.gz cd make-3.81/ ./configure make 

But, I get this output every time. I get the same output when I run a make command against the project as I do with the installation script.

davidn0rman@WSL-Ubuntu:/tmp/make-3.81$   make make ℹ info Invoking all target make ℹ info Invoking config.h target make ℹ info Invoking stamp-h1 target (node:13860) UnhandledPromiseRejectionWarning: undefined (node:13860) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:13860) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. make ✖ ERR  not found: make-$  (srcdir)/config.h.in    $   make <target...> [options]    Options:     --help             Show this help output     --version          Show package version     --debug            Enable extended log output    Targets:     [targets in the Makefile list here] 

If I try and make -v I get the following, but on the Mac I get the version and the copyright blurb.

davidn0rman@WSL-Ubuntu:/tmp$   make -v make ✖ ERR  Missing Makefile / Bakefile make ℹ info Run "make init" to generate a Makefile. 

To say it’s frustrating is putting it mildly, wondering if anyone has run across this before in WSL or Ubuntu? Node and npm are up to date.