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