We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15c3f32 + d3bad83 commit 48a20d5Copy full SHA for 48a20d5
contrib/diff-highlight/Makefile
@@ -10,6 +10,9 @@ diff-highlight: shebang.perl DiffHighlight.pm diff-highlight.perl
10
chmod +x $@+
11
mv $@+ $@
12
13
+install: diff-highlight
14
+ test -w $(DESTDIR) && ln -s $(abspath $<) $(DESTDIR)
15
+
16
shebang.perl: FORCE
17
@echo '#!$(PERL_PATH_SQ)' >$@+
18
@cmp $@+ $@ >/dev/null 2>/dev/null || mv $@+ $@
@@ -18,6 +21,9 @@ test: all
21
$(MAKE) -C t
19
22
20
23
clean:
24
+ test ! -L $(DESTDIR)/diff-highlight || \
25
+ $(RM) -f $(DESTDIR)/diff-highlight
26
$(RM) diff-highlight
27
28
.PHONY: FORCE
29
+.PHONY: install
0 commit comments