contrib / diff-highlight / Makefileon commit commit-graph: prepare for commit-graph chains (d4f4d60)
   1all: diff-highlight
   2
   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
  18        $(MAKE) -C t
  19
  20clean:
  21        $(RM) diff-highlight
  22
  23.PHONY: FORCE