From 22ba3b0b5043fa481903482ce85015fe775939e5 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 24 Apr 2008 20:23:05 +0300 Subject: [PATCH] Make unlzma and lzcat symlinks. --- src/lzma/Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lzma/Makefile.am b/src/lzma/Makefile.am index 84e4d34d..cd8bb771 100644 --- a/src/lzma/Makefile.am +++ b/src/lzma/Makefile.am @@ -61,3 +61,15 @@ lzma_LDADD = \ if COND_GNULIB lzma_LDADD += @top_builddir@/lib/libgnu.a endif + + +## Create symlinks for unlzma and lzcat: +install-exec-hook: + cd $(DESTDIR)$(bindir) && \ + rm -f unlzma lzcat && \ + $(LN_S) lzma unlzma && \ + $(LN_S) lzma lzcat + +uninstall-hook: + cd $(DESTDIR)$(bindir) && \ + rm -f unlzma lzcat