Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Rainer Weikusat Newsgroups: comp.os.linux.development.apps Subject: Re: How compile GNU make from sources? Date: Wed, 05 Dec 2018 18:18:07 +0000 Lines: 23 Message-ID: <87in07hm74.fsf@doppelsaurus.mobileactivedefense.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net rdhgQfwv5eI9KpivQ4IedA5WL+8y67YvdKAdcIEb77gzyTb1g= Cancel-Lock: sha1:GNUQRHlZCz/0V+tpkyIcneMw0Oo= sha1:CMFjyxYJJ9J+a/SsZ7LXQYnng+U= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Xref: csiph.com comp.os.linux.development.apps:886 Borneq writes: > 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) git doesn't preserve file timestamps of versioned files, these get whatever timestamp is current when being checked out. That's supposed to be a feature. This can be problematic if some versioned files could also be recreated by a Make-using build system: If the repository is large enough or happens at a 'bad' time, the source files may end up being newer than the generated files.