Makefile error within Dockerfile? ***No rule to make target '64'

I’m trying to RUN a “make” within my dockerfile build, but I’m getting the below error:
The makefile build works fine on linux. I think it something to do with the space between the command “make” and “64”. Can someone please explain why I’m getting this error?
Or is it not possible to perform make builds within a dockerfile.

RUN make 64 <<this is whats in my dockerfile

OS Version/build: WSL2 (Ubuntu) Docker version 20.10.21, build baeda1f
App version: Docker Desktop 4.14.1 (91661)

Example of dockerfile output…

#49 [45/78] COPY wineasio-1.1.0 /home/matt/Desktop
#49 sha256:177277fed76960542a177113f2a52acf7d194add8964493bb168da1c5fe09855
#49 DONE 0.1s

#50 [46/78] WORKDIR /home/matt/Desktop/wineasio1.1.0
#50 sha256:7ae66a0eeaf856db2ea485869eb441b9c628359486e3629c108b4691bca9aa60
#50 DONE 0.1s

#51 [47/78] RUN make 64
#51 sha256:1df215789f9558d31658b9087b1f7f59b3b5473e2d5546e6372509c056f9c7f0
#51 0.536 make: *** No rule to make target ‘64’. Stop.
#51 ERROR: executor failed running [/bin/sh -c make 64]: exit code: 2

[47/78] RUN make 64:


executor failed running [/bin/sh -c make 64]: exit code: 2
make: *** [Makefile:23: build] Error 1

Example of makefile…

#!/usr/bin/make -f

Makefile for WineASIO

---------------------

Created by falkTX

VERSION = 1.1.0

all:
@echo “error: you must pass ‘32’ or ‘64’ as an argument to this Makefile in order to build WineASIO”

---------------------------------------------------------------------------------------------------------------------

32:
$(MAKE) build ARCH=i386 M=32

64:
$(MAKE) build ARCH=x86_64 M=64

Please format your code according to make it easier to read and ingest by others:

Since the make target exists in the Makefile, I would suggest checking whether the Makefile is in the folder which the WORKDIR instruction in your Dockerfile sets. If it’s not, you need to provide the directory, where the Makefile is located like make -C ${folder where the Makefile is} 64 (of course you need to replace ${folder where the Makefile is} with the actual path to the folder), or if applicable set WORKDIR to the folder.