aboutsummaryrefslogtreecommitdiff
path: root/src/xzdec
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-06-27 12:32:40 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-06-27 12:32:40 +0300
commit792db79f27ad9ab1fb977e23be65c7761f545752 (patch)
tree85c6b375b9b33a3cb69541fe0b1d133c8696e3a7 /src/xzdec
parentSilence a compiler warning on DOS-like systems. (diff)
downloadxz-792db79f27ad9ab1fb977e23be65c7761f545752.tar.xz
Create correct symlinks even when
--program-{prefix,suffix,transform} is passed to configure.
Diffstat (limited to 'src/xzdec')
-rw-r--r--src/xzdec/Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/xzdec/Makefile.am b/src/xzdec/Makefile.am
index 1f13cd67..bdcc12bb 100644
--- a/src/xzdec/Makefile.am
+++ b/src/xzdec/Makefile.am
@@ -32,9 +32,12 @@ dist_man_MANS = xzdec.1
install-data-hook:
cd $(DESTDIR)$(mandir)/man1 && \
- rm -f lzmadec.1 && \
- $(LN_S) xzdec.1 lzmadec.1
+ target=`echo xzdec | $(SED) '$(transform)'` && \
+ link=`echo lzmadec | $(SED) '$(transform)'` && \
+ rm -f $$link.1 && \
+ $(LN_S) $$target.1 $$link.1
uninstall-hook:
cd $(DESTDIR)$(mandir)/man1 && \
- rm -f lzmadec.1
+ link=`echo lzmadec | $(SED) '$(transform)'` && \
+ rm -f $$link.1