3 ms·
Doesn't the built-in rule put files in the wrong folder? That is, the same folder the source file is in?
by Joker_vD 3y ago
Doesn't the built-in rule put files in the wrong folder? That is, the same folder the source file is in?
- seabass-labrax 3y agoYes; 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/.
- cozzyd 3y agoYou can probably use VPATH as a hack