W dniu 05.12.2018 o 18:37, Tauno Voipio pisze:
>> I want compile it from sources bacause I ant prepare it do not rebuild
>> all after git commits.
>> Make has one big disadvatage: after git commit of project, whole
>> project is rebuild.
>
>
> You may be barking up the wrong tree here: To force Make to rebuild
> the whole kit and caboodle, GIT seeems to change the modification
> timestamps of the files. It cannot be solved by changing Make.
>
I think, git not changes timestamps of my *.cpp files on commit, only on
checkout (if I change branch)
Make looks to .git directory and timestamp of any git file is changed.
If I previously use ninja, no any *.cpp file was changes, buf "explain"
give me
EXPLAIN("recorded mtime of %s older than most recent input %s (%d vs %d)"...
and
EXPLAIN("command line changed for %s", output->path().c_str());
if I comment this, only changed *.cpp file was build