aboutsummaryrefslogtreecommitdiff
path: root/src/xzdec/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/xzdec/Makefile.am')
-rw-r--r--src/xzdec/Makefile.am11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xzdec/Makefile.am b/src/xzdec/Makefile.am
index 5ae4fa2c..dfc6f7ce 100644
--- a/src/xzdec/Makefile.am
+++ b/src/xzdec/Makefile.am
@@ -26,3 +26,14 @@ lzmadec_SOURCES = $(xzdec_SOURCES)
lzmadec_CPPFLAGS = $(xzdec_CPPFLAGS) -DLZMADEC
lzmadec_LDFLAGS = $(xzdec_LDFLAGS)
lzmadec_LDADD = $(xzdec_LDADD)
+
+dist_man_MANS = xzdec.1
+
+install-data-hook:
+ cd $(DESTDIR)$(mandir)/man1 && \
+ rm -f lzmadec.1 && \
+ $(LN_S) xzdec.1 lzmadec.1
+
+uninstall-hook:
+ cd $(DESTDIR)$(mandir)/man1 && \
+ rm -f lzmadec.1