diff options
author | Simon Tatham <anakin@pobox.com> | 2017-05-18 08:30:18 +0100 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2017-05-18 08:30:18 +0100 |
commit | 4b5efa150a93c141640e38659e8210182279834e (patch) | |
tree | 332791e399b9024f7341e9a03d6390fc1cea8e82 | |
parent | a568db73a69a934c09ad5c95f5a218fb6b869298 (diff) | |
download | wix-on-linux-4b5efa150a93c141640e38659e8210182279834e.tar.gz wix-on-linux-4b5efa150a93c141640e38659e8210182279834e.tar.bz2 wix-on-linux-4b5efa150a93c141640e38659e8210182279834e.zip |
Make the symlinking in 'make install' idempotent.
-rw-r--r-- | Makefile.am | 6 |
1 files 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 | |||
16 | bin_SCRIPTS = wrapper.py makecab.py | 16 | bin_SCRIPTS = wrapper.py makecab.py |
17 | 17 | ||
18 | install-exec-hook: | 18 | install-exec-hook: |
19 | cd $(DESTDIR)$(bindir) && $(LN_S) wrapper.py candle | 19 | cd $(DESTDIR)$(bindir) && \ |
20 | cd $(DESTDIR)$(bindir) && $(LN_S) wrapper.py light | 20 | { test -h candle || $(LN_S) wrapper.py candle; } |
21 | cd $(DESTDIR)$(bindir) && \ | ||
22 | { test -h light || $(LN_S) wrapper.py light; } | ||