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

Re: [PATCH] diff-highlight: link to diff-highlight in DESTDIR #Makefile #diff-highlight

From
Taylor Blau <me@ttaylorr.com>
Date
Oct 12, 2024, 15:50 UTC
Message-ID
<Zwqa3YFt9+dfKmHM@nand.local>
In-Reply-To
<pull.938.git.git.1728745399993.gitgitgadget@gmail.com>
On Sat, Oct 12, 2024 at 03:03:19PM +0000, immeëmosol via GitGitGadget wrote:
Show 9 quoted lines
> diff --git a/contrib/diff-highlight/Makefile b/contrib/diff-highlight/Makefile
> index f2be7cc9243..10c588a7929 100644
> --- a/contrib/diff-highlight/Makefile
> +++ b/contrib/diff-highlight/Makefile
> @@ -9,6 +9,7 @@ diff-highlight: shebang.perl DiffHighlight.pm diff-highlight.perl
>  	cat $^ >$@+
>  	chmod +x $@+
>  	mv $@+ $@
> +	ln --symbolic --target-directory=$(DESTDIR) $(abspath $@)

Hmm. I am not opposed to having diff-highlight's Makefile be responsible for installing a symbolic link to the generated script, but I do not think that this Makefile recipe is the right place to do it.

This recipe is about building the executable, not installing it. If you want to introduce a separate .PHONY recipe for installing the script, I think that would be a better place to introduce this change.

Thanks, Taylor

Previous: immeëmosol via GitGitGadgetNext: immeëmosol via GitGitGadget
Message 2 of 11 in “diff-highlight: link to diff-highlight in DESTDIR #Makefile #diff-highlight”
  1. diff-highlight: link to diff-highlight in DESTDIR #Makefile #diff-highlightimmeëmosol via GitGitGadget, Oct 12, 2024
  2. Taylor BlauOct 12, 2024
  3. diff-highlight: make install link into DESTDIR #Makefileimmeëmosol via GitGitGadget, Oct 12, 2024
  4. Kristoffer HaugsbakkOct 12, 2024
  5. immeëmosolOct 12, 2024
  6. Junio C HamanoOct 12, 2024
  7. diff-highlight: make install link into DESTDIRimmeëmosol via GitGitGadget, Oct 12, 2024
  8. Jeff KingOct 12, 2024
  9. immeëmosolOct 12, 2024
  10. Đoàn Trần Công DanhOct 14, 2024
  11. Taylor BlauOct 14, 2024

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.