From 4b5efa150a93c141640e38659e8210182279834e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 18 May 2017 08:30:18 +0100 Subject: Make the symlinking in 'make install' idempotent. --- Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 1e25726..786ca13 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,5 +16,7 @@ libpreload_la_LDFLAGS = -ldl bin_SCRIPTS = wrapper.py makecab.py install-exec-hook: - cd $(DESTDIR)$(bindir) && $(LN_S) wrapper.py candle - cd $(DESTDIR)$(bindir) && $(LN_S) wrapper.py light + cd $(DESTDIR)$(bindir) && \ + { test -h candle || $(LN_S) wrapper.py candle; } + cd $(DESTDIR)$(bindir) && \ + { test -h light || $(LN_S) wrapper.py light; } -- cgit v1.2.3-55-g6feb