xz/src/scripts/Makefile.am

66 lines
2.0 KiB
Makefile
Raw Normal View History

##
## Author: Lasse Collin
##
## This file has been put into the public domain.
## You can do whatever you want with this file.
##
dist_bin_SCRIPTS = xzdiff xzgrep xzmore
dist_man_MANS = xzdiff.1 xzgrep.1 xzmore.1
2007-12-08 22:42:33 +00:00
install-exec-hook:
cd $(DESTDIR)$(bindir) && \
target=`echo xzdiff | $(SED) '$(transform)'` && \
for name in xzcmp lzdiff lzcmp; do \
link=`echo $$name | $(SED) '$(transform)'` && \
rm -f $$link && \
$(LN_S) $$target $$link; \
done && \
target=`echo xzgrep | $(SED) '$(transform)'` && \
for name in xzegrep xzfgrep lzgrep lzegrep lzfgrep; do \
link=`echo $$name | $(SED) '$(transform)'` && \
rm -f $$link && \
$(LN_S) $$target $$link; \
done && \
target=`echo xzmore | $(SED) '$(transform)'` && \
for name in xzless lzmore lzless; do \
link=`echo $$name | $(SED) '$(transform)'` && \
rm -f $$link && \
$(LN_S) $$target $$link; \
done
2007-12-08 22:42:33 +00:00
install-data-hook:
cd $(DESTDIR)$(mandir)/man1 && \
target=`echo xzdiff | $(SED) '$(transform)'` && \
for name in xzcmp lzdiff lzcmp; do \
link=`echo $$name | $(SED) '$(transform)'` && \
rm -f $$link.1 && \
$(LN_S) $$target.1 $$link.1; \
done && \
target=`echo xzgrep | $(SED) '$(transform)'` && \
for name in xzegrep xzfgrep lzgrep lzegrep lzfgrep; do \
link=`echo $$name | $(SED) '$(transform)'` && \
rm -f $$link.1 && \
$(LN_S) $$target.1 $$link.1; \
done && \
target=`echo xzmore | $(SED) '$(transform)'` && \
for name in xzless lzmore lzless; do \
link=`echo $$name | $(SED) '$(transform)'` && \
rm -f $$link.1 && \
$(LN_S) $$target.1 $$link.1; \
done
2007-12-08 22:42:33 +00:00
uninstall-hook:
cd $(DESTDIR)$(bindir) && \
for name in xzcmp lzdiff lzcmp xzgrep xzegrep xzfgrep \
lzgrep lzegrep lzfgrep xzless lzmore lzless; do \
link=`echo $$name | $(SED) '$(transform)'` && \
rm -f $$link; \
done
2007-12-08 22:42:33 +00:00
cd $(DESTDIR)$(mandir)/man1 && \
for name in xzcmp lzdiff lzcmp xzgrep xzegrep xzfgrep \
lzgrep lzegrep lzfgrep xzless lzmore lzless; do \
link=`echo $$name | $(SED) '$(transform)'` && \
rm -f $$link.1; \
done