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; }