1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
|
## Process this file with automake to produce Makefile.in
## Copyright (C) 2010 University of Helsinki
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
hfst_tools=hfst-compare.1 hfst-compose.1 \
hfst-concatenate.1 hfst-determinize.1 \
hfst-disjunct.1 \
hfst-fst2fst.1 hfst-fst2strings.1 \
hfst-fst2txt.1 \
hfst-head.1 hfst-conjunct.1 \
hfst-invert.1 hfst-minimize.1 hfst-project.1 \
hfst-push-weights.1 hfst-regexp2fst.1 \
hfst-remove-epsilons.1 hfst-repeat.1 \
hfst-reverse.1 hfst-split.1 hfst-strings2fst.1 \
hfst-subtract.1 hfst-summarize.1 hfst-tail.1 hfst-txt2fst.1 \
hfst-calculate.1 hfst-compose-intersect.1 \
hfst-lookup.1 \
hfst-substitute.1 hfst-format.1 hfst-name.1 hfst-lexc.1 \
hfst-affix-guessify.1 hfst-edit-metadata.1 hfst-expand-equivalences.1 \
hfst-grep.1 hfst-guess.1 hfst-guessify.1 hfst-info.1 hfst-multiply.1 \
hfst-pair-test.1 hfst-prune-alphabet.1 hfst-reweight.1 hfst-shuffle.1 \
hfst-traverse.1 hfst-tokenize.1 hfst-pmatch.1 hfst-pmatch2fst.1 \
hfst-optimized-lookup.1
hfst_xfst=hfst-xfst.1
hfst_apertium_proc=hfst-apertium-proc.1
hfst_tag_and_reweight=hfst-tag.1 hfst-reweight-tagger.1
if WANT_TRAIN_TAGGER
hfst_train_tagger=hfst-train-tagger.1
hfst_train_tagger_subprograms=hfst-open-input-file-for-tagger.1 \
hfst_tagger_compute_data_statistics.py.1 hfst-build-tagger.1 # hand-written
else
hfst_train_tagger=
hfst_train_tagger_subprograms=
endif
hfst_twolc=hfst-twolc.1
if WANT_TWOLC_SCRIPT
hfst_twolc_subprograms= htwolcpre1.1 htwolcpre2.1 htwolcpre3.1 hfst-twolc-script.1 # hand-written
else
hfst_twolc_subprograms=
endif
aliases= hfst-determinise.1 hfst-expand.1 hfst-intersect.1 hfst-minimise.1 \
hfst-minus.1 hfst-sfstpl2fst.1 hfst-summarise.1 hfst-union.1 hfst-proc.1 \
hfst-optimised-lookup.1 \
hfst-proc2.1 hfst-tokenise.1
dist_man1_MANS=$(hfst_tools) $(hfst_xfst) $(hfst_apertium_proc) \
$(hfst_tag_and_reweight) $(hfst_train_tagger) $(hfst_train_tagger_subprograms) $(hfst_twolc) \
$(hfst_twolc_subprograms) $(aliases)
EXTRA_DIST=hfst-train-tagger.1 \
hfst-open-input-file-for-tagger.1 hfst_tagger_compute_data_statistics.py.1 \
hfst-build-tagger.1 htwolcpre1.1 htwolcpre2.1 htwolcpre3.1 hfst-twolc-script.1
LN_S=ln -s -f
hfst-determinise.1:
$(LN_S) hfst-determinize.1 hfst-determinise.1
hfst-expand.1:
$(LN_S) hfst-fst2strings.1 hfst-expand.1
hfst-intersect.1:
$(LN_S) hfst-conjunct.1 hfst-intersect.1
hfst-minimise.1:
$(LN_S) hfst-minimize.1 hfst-minimise.1
hfst-minus.1:
$(LN_S) hfst-subtract.1 hfst-minus.1
hfst-optimised-lookup.1:
$(LN_S) hfst-optimized-lookup.1 hfst-optimised-lookup.1
hfst-proc.1:
$(LN_S) hfst-apertium-proc.1 hfst-proc.1
hfst-sfstpl2fst.1:
$(LN_S) hfst-calculate.1 hfst-sfstpl2fst.1
hfst-summarise.1:
$(LN_S) hfst-summarize.1 hfst-summarise.1
hfst-union.1:
$(LN_S) hfst-disjunct.1 hfst-union.1
hfst-proc2.1:
$(LN_S) hfst-tokenize.1 hfst-proc2.1
hfst-tokenise.1:
$(LN_S) hfst-tokenize.1 hfst-tokenise.1
# Generate man pages for all tools and their aliases
man:
make bootstrap && make aliases
# Generate man pages from help messages
bootstrap:
for f in $(hfst_tools); do \
N=`echo $$f | sed 's/.1/ \-\-help/' | sed 's/hfst/..\/tools\/src\/hfst/' | sh | sed -n 2p`; \
help2man \
-n="$$N" \
-s 1 -o $$f -N -S HFST `echo $$f | sed 's/.1//' | sed 's/hfst/..\/tools\/src\/hfst/'`; \
done;
for f in $(hfst_xfst); do \
N=`echo $$f | sed 's/.1/ \-\-help/' | sed 's/hfst/..\/tools\/src\/parsers\/hfst/' | sh | sed -n 2p`; \
help2man \
-n="$$N" \
-s 1 -o $$f -N -S HFST `echo $$f | sed 's/.1//' | sed 's/hfst/..\/tools\/src\/parsers\/hfst/'`; \
done;
# for f in $(hfst_apertium_proc); do \
# N=`echo $$f | sed 's/.1/ \-\-help/' | sed 's/hfst/..\/tools\/src\/hfst-proc\/hfst/' | sh | sed -n 2p`; \
# help2man \
# -n="$$N" \
# -s 1 -o $$f -N -S HFST `echo $$f | sed 's/.1//' | sed 's/hfst/..\/tools\/src\/hfst-proc\/hfst/'`; \
# done;
for f in $(hfst_tag_and_reweight); do \
N=`echo $$f | sed 's/.1/ \-\-help/' | sed 's/hfst/..\/tools\/src\/hfst-tagger\/src\/hfst/' | sh | sed -n 2p`; \
help2man --no-discard-stderr \
-n="$$N" \
-s 1 -o $$f -N -S HFST `echo $$f | sed 's/.1//' | sed 's/hfst/..\/tools\/src\/hfst-tagger\/src\/hfst/'`; \
done;
for f in $(hfst_train_tagger); do \
N=`echo "../tools/src/hfst-tagger/src/hfst-open-input-file-for-tagger --help" | sh | sed -n 2p`; \
help2man --no-discard-stderr \
-n="$$N" \
-s 1 -o $$f -N -S HFST `echo "../tools/src/hfst-tagger/src/hfst-train-tagger"`; \
done;
for f in $(hfst_twolc); do \
N=`echo "../tools/src/hfst-twolc/src/hfst-twolc --help" | sh | sed -n 2p`; \
help2man --no-discard-stderr \
-n="$$N" \
-s 1 -o $$f -N -S HFST `echo "../tools/src/hfst-twolc/src/hfst-twolc"`; \
done;
# hfst-foma man page is hand-written
# Create symbolic links to aliases
aliases:
for f in $(aliases) ; do \
make $$f; \
done;
|