aboutsummaryrefslogtreecommitdiff
path: root/src/xzdec/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to '')
-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