2 ## Author: Lasse Collin
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
8 nodist_bin_SCRIPTS = xzdiff xzgrep xzmore xzless
9 dist_man_MANS = xzdiff.1 xzgrep.1 xzmore.1 xzless.1
28 cd "$(DESTDIR)$(bindir)" && \
29 for pair in $(links); do \
30 target=`echo $$pair | sed 's/-.*$$//' | sed '$(transform)'` && \
31 link=`echo $$pair | sed 's/^.*-//' | sed '$(transform)'` && \
33 $(LN_S) "$$target" "$$link"; \
36 # The installation of translated man pages abuses Automake internals
37 # by calling "install-man" with redefined dist_man_MANS and man_MANS.
38 # If this breaks some day, don't blame Automake developers.
41 if test "$(USE_NLS)" = yes && test -d "$(top_srcdir)/po4a/man"; then \
42 languages=`ls "$(top_srcdir)/po4a/man"`; \
44 for lang in $$languages; do \
46 for man in $(dist_man_MANS); do \
47 man="$(top_srcdir)/po4a/man/$$lang/$$man" ; \
48 if test -f "$$man"; then \
49 mans="$$mans $$man"; \
52 $(MAKE) dist_man_MANS="$$mans" man_MANS= \
53 mandir="$(mandir)/$$lang" install-man; \
55 for lang in . $$languages; do \
56 for pair in $(links); do \
57 target=`echo $$pair | sed 's/-.*$$//' \
58 | sed '$(transform)'` && \
59 link=`echo $$pair | sed 's/^.*-//' \
60 | sed '$(transform)'` && \
61 man1dir="$(DESTDIR)$(mandir)/$$lang/man1" && \
62 if test -f "$$man1dir/$$target.1"; then ( \
65 $(LN_S) "$$target.1" "$$link.1" \
71 cd "$(DESTDIR)$(bindir)" && \
72 for pair in $(links); do \
73 link=`echo $$pair | sed 's/^.*-//' | sed '$(transform)'` && \
77 if test "$(USE_NLS)" = yes && test -d "$(top_srcdir)/po4a/man"; then \
78 languages=`ls "$(top_srcdir)/po4a/man"`; \
80 for lang in . $$languages; do \
81 for pair in $(links); do \
82 target=`echo $$pair | sed 's/-.*$$//' \
83 | sed '$(transform)'` && \
84 link=`echo $$pair | sed 's/^.*-//' \
85 | sed '$(transform)'` && \
86 rm -f "$(DESTDIR)$(mandir)/$$lang/man1/$$target.1" \
87 "$(DESTDIR)$(mandir)/$$lang/man1/$$link.1"; \