make is it possible to print a custom error message instead of GNU's default one, possibly with the line number as well? I am fine with
make's default behavior in all other scenarios.
Here is an example:
requirements.txt: ls requirements.txt || echo "Download requirements.txt." && false
This works; but it is not DRY especially since you see GNU's internal error message as well:
% make Download requirements.txt. make: *** [Makefile:10: requirements.txt] Error 1
I would like to just print:
Makefile 10: Please download requirements.txt.
(I am trying to use
make for my
Dockerfile - not sure if that is a bad idea!)