diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-06-27 12:32:40 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-06-27 12:32:40 +0300 |
commit | 792db79f27ad9ab1fb977e23be65c7761f545752 (patch) | |
tree | 85c6b375b9b33a3cb69541fe0b1d133c8696e3a7 /src/xzdec | |
parent | Silence a compiler warning on DOS-like systems. (diff) | |
download | xz-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.am | 9 |
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 |