Merge branch 'sg/line-log-tree-diff-optim'
[git/git.git] / contrib / diff-highlight / Makefile
CommitLineData
0c977dbc 1all: diff-highlight
23b250ab 2
0c977dbc
JK
3PERL_PATH = /usr/bin/perl
4-include ../../config.mak
5
6PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
7
8diff-highlight: shebang.perl DiffHighlight.pm diff-highlight.perl
9 cat $^ >$@+
10 chmod +x $@+
11 mv $@+ $@
12
13shebang.perl: FORCE
14 @echo '#!$(PERL_PATH_SQ)' >$@+
15 @cmp $@+ $@ >/dev/null 2>/dev/null || mv $@+ $@
16
17test: all
23b250ab 18 $(MAKE) -C t
0c977dbc 19
74f1bd91
DW
20clean:
21 $(RM) diff-highlight
22
0c977dbc 23.PHONY: FORCE