I am interested in using GNU Make on Windows. I created a tiny Makefile using a Pattern Rule:
all: abcd.o
%.o : %.c
echo hi
However, when I attempt to make all,
D:\test>"C:\Program Files (x86)\GnuWin32\bin\make" -f Makefile.txt
make: *** No rule to make target `abcd.o', needed by `all'. Stop.
I install GNU Make from this repository. The documentation that I found describes that this Makefile should work.
D:\test>"C:\Program Files (x86)\GnuWin32\bin\make" --version
GNU Make 3.81
How can I use pattern rules in GNU Makefiles on Windows?