Make the symlinking in 'make install' idempotent.

This commit is contained in:
Simon Tatham 2017-05-18 08:30:18 +01:00
parent a568db73a6
commit 4b5efa150a

View file

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