1 PACKAGE_STRING = GNU coreutils
5 FILES = $(wildcard *.x)
6 MANPAGES = $(patsubst %.x,%.1,$(FILES))
9 HELP2MAN = /usr/bin/help2man
12 AM_V_GEN = @echo " GEN " $@;
16 # Ensure that help2man runs the ../src/ginstall binary as
17 # 'install' when creating install.1.
18 # Similarly, ensure that it uses the ../src/[ binary to create test.1.
20 mapped_name = `echo $*|sed 's/^install$$/ginstall/; s/^test$$/[/'`
24 build-man: $(MANPAGES)
27 $(INSTALL) --mode=644 $(MANPAGES) $(DEST)
32 $(MANPAGES): $(srcdir)/locale/ja/LC_MESSAGES/coreutils.mo
35 $(AM_V_GEN)rm -f $@ $@-t \
39 sed -e '/^\.\\\"O/d' ./$*.x > $t/$*.x; \
40 (cd $t && $(LN_S) ../$(srcdir)/src/$(mapped_name) $*); \
43 --source='$(PACKAGE_STRING)' \
45 --output=$t/$@ $t/$*; \
47 && sed 's|$*\.td/||g' $t/$@ > $@-t \