Skip to content

Commit 48a20d5

Browse files
committed
Merge branch 'wf/diff-highlight-install' into seen
Adds an 'install' recipe to diff-highlight's Makefile. * wf/diff-highlight-install: diff-highlight: make install link into DESTDIR
2 parents 15c3f32 + d3bad83 commit 48a20d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/diff-highlight/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ diff-highlight: shebang.perl DiffHighlight.pm diff-highlight.perl
1010
chmod +x $@+
1111
mv $@+ $@
1212

13+
install: diff-highlight
14+
test -w $(DESTDIR) && ln -s $(abspath $<) $(DESTDIR)
15+
1316
shebang.perl: FORCE
1417
@echo '#!$(PERL_PATH_SQ)' >$@+
1518
@cmp $@+ $@ >/dev/null 2>/dev/null || mv $@+ $@
@@ -18,6 +21,9 @@ test: all
1821
$(MAKE) -C t
1922

2023
clean:
24+
test ! -L $(DESTDIR)/diff-highlight || \
25+
$(RM) -f $(DESTDIR)/diff-highlight
2126
$(RM) diff-highlight
2227

2328
.PHONY: FORCE
29+
.PHONY: install

0 commit comments

Comments
 (0)