Make no longer gives the "<program> is up to date" message. Specs need to be changed to reflect?
curiouskiwi opened this issue · 4 comments
In the Find problem, this paragraph no longer fully applies:
The first line tells
make
that the "target" calledgenerate
should be built by invoking the second line’s command. Moreover, that first line tells make thatgenerate
is dependent ongenerate.c
, the implication of which is thatmake
will only re-buildgenerate
on subsequent runs if that file was modified since make last builtgenerate
. Neat time-saving trick, eh? In fact, go ahead and execute the command below again, assuming you haven’t modifiedgenerate.c
.
make generate
You should be informed that
generate
is already up-to-date.
(note that this also applies to the https://cdn.cs50.net/2016/x/psets/3/pset3/pset3.html
spec, and has raised questions from edX students).
Ah, want to submit a PR? We actually tweaked make
to forcibly recompile each time, just to avoid this confusion. (And to ward off corner cases where a Makefile
doesn't mention some file as a dependency and thus doesn't get rebuilt when it changes.)
This is still generating questions. Any update?
Oops, sorry, looks like we were awaiting a PR. 0:-) Fixed!