Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #887
| From | Tauno Voipio <tauno.voipio@notused.fi.invalid> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | Re: How compile GNU make from sources? |
| Date | 2018-12-05 20:21 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <pu94va$amm$1@dont-email.me> (permalink) |
| References | <pu8mr5$s1n$1@node2.news.atman.pl> <pu92c4$o5i$1@dont-email.me> <pu93sc$8hc$1@node2.news.atman.pl> |
On 5.12.18 20:02, Borneq wrote:
> 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
Your makefile is bad, if it looks at or into .git directory.
Make should use timestamps of the dependencies only.
--
-TV
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next in thread | Find similar
How compile GNU make from sources? Borneq <borneq@antyspam.hidden.pl> - 2018-12-05 15:20 +0100
Re: How compile GNU make from sources? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-12-05 19:37 +0200
Re: How compile GNU make from sources? Borneq <borneq@antyspam.hidden.pl> - 2018-12-05 19:02 +0100
Re: How compile GNU make from sources? Rainer Weikusat <rweikusat@talktalk.net> - 2018-12-05 18:18 +0000
Re: How compile GNU make from sources? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-12-05 20:21 +0200
Re: How compile GNU make from sources? Borneq <borneq@antyspam.hidden.pl> - 2018-12-05 20:28 +0100
Re: How compile GNU make from sources? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-12-05 22:43 +0200
Re: How compile GNU make from sources? Rainer Weikusat <rweikusat@talktalk.net> - 2018-12-05 23:07 +0000
Re: How compile GNU make from sources? Borneq <borneq@antyspam.hidden.pl> - 2018-12-05 21:30 +0100
csiph-web