aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-09-11 10:24:09 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-09-11 10:24:09 +0300
commit221be761f467da76875247bc02d7a1716682075d (patch)
tree9dd0da03430086b0306582bc7a230e44c065eb15 /src
parentFix a couple of warnings. (diff)
downloadxz-221be761f467da76875247bc02d7a1716682075d.tar.xz
Use $(LN_EXEEXT) in symlinks to executables.
This fixes "make install" on operating systems using a suffix for executables. Cygwin is treated specially. The symlink names won't have .exe suffix even though the executables themselves have. Thanks to Charles Wilson.
Diffstat (limited to '')
-rw-r--r--src/xz/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xz/Makefile.am b/src/xz/Makefile.am
index ccdc66ca..9f4b4668 100644
--- a/src/xz/Makefile.am
+++ b/src/xz/Makefile.am
@@ -69,7 +69,7 @@ install-exec-hook:
cd $(DESTDIR)$(bindir) && \
target=`echo xz | sed '$(transform)'`$(EXEEXT) && \
for name in $(xzlinks); do \
- link=`echo $$name | sed '$(transform)'` && \
+ link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
rm -f $$link && \
$(LN_S) $$target $$link; \
done
@@ -86,7 +86,7 @@ install-data-hook:
uninstall-hook:
cd $(DESTDIR)$(bindir) && \
for name in $(xzlinks); do \
- link=`echo $$name | sed '$(transform)'` && \
+ link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
rm -f $$link; \
done
cd $(DESTDIR)$(mandir)/man1 && \