3 ms·
Yes; I've just tested it on GNU Make 4.3 and you are quite right. It only works when the *.c files are in the directory where object files are referenced. E.g.:
by seabass-labrax 3y ago
Yes; I've just tested it on GNU Make 4.3 and you are quite right. It only works when the *.c files are in the directory where object files are referenced. E.g.:
example: build/blah.o
echo nothing special
.PHONY: example
...requires blah.c to be in build/.