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

Re: [PATCH] convert: mark a file-local symbol static

From
Jeff King <peff@peff.net>
Date
Oct 17, 2016, 09:37 UTC
Message-ID
<20161017093754.wah5d6cg4qgtw7ln@sigill.intra.peff.net>
In-Reply-To
<alpine.DEB.2.20.1610171058580.197091@virtualbox>
On Mon, Oct 17, 2016 at 11:04:19AM +0200, Johannes Schindelin wrote:
Show 15 quoted lines
> > Gross. I would not be opposed to a Makefile rule that outputs the
> > correct set of OBJECTS so this (or other) scripts could build on it.
> 
> You could also use the method I use in Git for Windows to "extend" the
> Makefile:
> 
> -- snipsnap --
> cat >dummy.mak <<EOF
> include Makefile
> 
> blub: $(OBJECTS)
> 	do-something-with $^
> EOF
> 
> make -f dummy.mak blub
Hacky but clever. I like it.

In the particular case of git, I think I've cheated similarly before by putting things in config.mak, though of course an arbitrary script can't assume it can overwrite that file.

-Peff
Previous: Johannes SchindelinNext: Ramsay Jones
Message 8 of 14 in “convert: mark a file-local symbol static”
  1. convert: mark a file-local symbol staticRamsay Jones, Oct 11, 2016
  2. Lars SchneiderOct 15, 2016
  3. Ramsay JonesOct 15, 2016
  4. Lars SchneiderOct 16, 2016
  5. Ramsay JonesOct 17, 2016
  6. Jeff KingOct 17, 2016
  7. Johannes SchindelinOct 17, 2016
  8. Jeff KingOct 17, 2016
  9. Ramsay JonesOct 17, 2016
  10. Junio C HamanoOct 17, 2016
  11. René ScharfeOct 17, 2016
  12. Stefan BellerOct 17, 2016
  13. Ramsay JonesOct 17, 2016
  14. Ramsay JonesOct 17, 2016

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.