git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Make the installation targets a little less chatty

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jun 4, 2007, 14:00 UTC
Message-ID
<81b0412b0706040700s667afe5ap14a8343a9313ef60@mail.gmail.com>
In-Reply-To
<7vvee4jh24.fsf@assigned-by-dhcp.cox.net>
On 6/4/07, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> >
> > Updated. BTW, where does "no $(call) in Makefile" came from?
> > It could simplify the thing a lot
>
> Probably, but first let's make it "work right" while not
> introducing new stuff.
>
Just looked for the reasons, which appear to be there:
commit 39c015c556f285106931e0500f301de462b0e46e
Author: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Date:   Sat Feb 18 12:40:22 2006 +0100
    Fixes for ancient versions of GNU make
    Some versions of GNU make do not understand $(call), and have problems to
    interpret rules like this:
    some_target: CFLAGS += -Dsome=defs
    [jc: simplified substitution a bit. ]
    Signed-off-by: Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
I trust Johannes to have such a make, never seen it myself, though.
Show 7 quoted lines
> >  install: all
> >       $(INSTALL) -d -m755 '$(DESTDIR_SQ)$(bindir_SQ)'
> >       $(INSTALL) -d -m755 '$(DESTDIR_SQ)$(gitexecdir_SQ)'
>
> I found Shawn's "DEST = $this_directory" quite decent.  Forgot
> to port it?
>

Race condition. Hit the send button before reading his patch and the related discussion. Besides, now I find it is already too much cruft just to print a directory. Didn't want to make it pretty, just needed some readability on screen. Still think the errors of (eventually) failing install would be enough.

Using $(call) would allow to generalize that, BTW.
Previous: Junio C HamanoNext: Johannes Schindelin
Message 8 of 11 in “quieter installs”
  1. Shawn O. PearceJun 3, 2007
  2. Junio C HamanoJun 3, 2007
  3. Shawn O. PearceJun 3, 2007
  4. Alex RiesenJun 3, 2007
  5. Alex RiesenJun 3, 2007
  6. Make the installation targets a little less chattyAlex Riesen, Jun 3, 2007
  7. Junio C HamanoJun 4, 2007
  8. Alex RiesenJun 4, 2007
  9. Johannes SchindelinJun 4, 2007
  10. Alex RiesenJun 5, 2007
  11. Make the installation target of git-gui a little less chattyAlex Riesen, Jun 3, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.