Re: is there a make style guide somewhere?

2019-11-02 Thread Robert P. J. Day
On Sat, 2 Nov 2019, David wrote: > On Fri, 1 Nov 2019 at 02:08, Robert P. J. Day wrote: > > [...] > > > is there a list > > somewhere of such idioms and style recommendations? > > There's this, if you haven't seen it: > https://www.gnu.org/software/make/manual/html_node/Makefile-Conventions.html#

Re: is there a make style guide somewhere?

2019-11-02 Thread Robert P. J. Day
On Sat, 2 Nov 2019, David wrote: > On Fri, 1 Nov 2019 at 02:08, Robert P. J. Day wrote: > > [...] > > > my suggestion was, for any targets for which it is feasible to > > invoke directly, add a redirection(?) target with a meaningful name: > > > > turn_src_into_elf: $(OUTPUT_DIR)/target.elf >

Re: anything special about "." prefixed targets other than default?

2019-11-02 Thread Robert P. J. Day
On Fri, 11 Oct 2019, Paul Smith wrote: > On Fri, 2019-10-11 at 10:18 -0400, Robert P. J. Day wrote: > > i'm looking at someone else's Makefile, and it is replete with > > targets whose names begin with a period. i'm aware of the property > > that such targets will not be considered as the defaul

pedantic nitpickery: difference between "goal" and "target"?

2019-11-02 Thread Robert P. J. Day
junior colleague who is just learning make and is going through make manual asked me the other day (regarding section 2.3 in manual) about this passage: "By default, make starts with the first target (not targets whose names start with ‘.’). This is called the default goal. (Goals are the targ

Re: pedantic nitpickery: difference between "goal" and "target"?

2019-11-02 Thread David
On Sat, 2 Nov 2019 at 22:18, Robert P. J. Day wrote: [...] > "By default, make starts with the first target (not targets whose > names start with ‘.’). This is called the default goal. (Goals are the > targets that make strives ultimately to update ..." > > the question was, "what is the differe

Re: is there a make style guide somewhere?

2019-11-02 Thread Galen Seitz
On 11/1/19 8:49 PM, David wrote: On Fri, 1 Nov 2019 at 02:08, Robert P. J. Day wrote: [...] is there a list somewhere of such idioms and style recommendations? There's this, if you haven't seen it: https://www.gnu.org/software/make/manual/html_node/Makefile-Conventions.html#Makefile-Convent

Re: is there a make style guide somewhere?

2019-11-02 Thread Martin d'Anjou
Google for "Recursive Make Considered Harmful pdf by Peter Miller". You will learn a lot, whether you agree or not with the "harmful" assessment. Martin On Sat., Nov. 2, 2019, 12:25 Galen Seitz, wrote: > On 11/1/19 8:49 PM, David wrote: > > On Fri, 1 Nov 2019 at 02:08, Robert P. J. Day > wrote

Re: is there a make style guide somewhere?

2019-11-02 Thread Robert P. J. Day
On Sat, 2 Nov 2019, Martin d'Anjou wrote: > Google for "Recursive Make Considered Harmful pdf by Peter Miller". > You will learn a lot, whether you agree or not with the "harmful" > assessment. i read that a while back ... one does not need to agree or disagree to learn from it. rday