Make unlzma and lzcat symlinks.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 24 Apr 2008 17:23:05 +0000 (20:23 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 24 Apr 2008 17:23:05 +0000 (20:23 +0300)
src/lzma/Makefile.am

index 84e4d34..cd8bb77 100644 (file)
@@ -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