I'm trying to write a Makefile which should download some sources if and only if they are missing.
Something like:
hello: hello.c
gcc -o hello hello.c
hello.c:
wget -O hello.c http://example.org/hello.c
But of course this causes hello.c
to be downloaded every time make command is run. I would like hello.c
to be downloaded by this Makefile only if it is missing. Is this possible with GNU make and how to do this if it is?