Skip to content

Commit e23aeb1

Browse files
committed
diff-highlight: link to diff-highlight in DESTDIR #Makefile #diff-highlight
Make git's diff-highlight program immediately available to the command-line. Create a link in DESTDIR that refers to the generated/concatenated diff-highlight perl script Signed-off-by: immeëmosol <[email protected]>
1 parent ef8ce8f commit e23aeb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/diff-highlight/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ diff-highlight: shebang.perl DiffHighlight.pm diff-highlight.perl
99
cat $^ >$@+
1010
chmod +x $@+
1111
mv $@+ $@
12+
ln --symbolic --target-directory=$(DESTDIR) $(abspath $@)
1213

1314
shebang.perl: FORCE
1415
@echo '#!$(PERL_PATH_SQ)' >$@+
@@ -19,5 +20,6 @@ test: all
1920

2021
clean:
2122
$(RM) diff-highlight
23+
$(RM) --force $(DESTDIR)diff-highlight
2224

2325
.PHONY: FORCE

0 commit comments

Comments
 (0)