summaryrefslogtreecommitdiff
path: root/src/roff/groff/groff.am
blob: 4854eabe1f140561a9bf3f3804026ed001e049ff (plain)
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
# Copyright (C) 1993-2018 Free Software Foundation, Inc.
#
#   Original Makefile.sub rewritten by
#   Bernd Warken <groff-bernd.warken-72@web.de>
#   and Werner LEMBERG <wl@gnu.org>
#
#   Automake migration by
#   Bertrand Garrigues <bertrand.garrigues@laposte.net>
#
# This file is part of groff.
#
# groff 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.
#
# groff 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/>.

bin_PROGRAMS += groff
groff_LDADD = \
  libgroff.a \
  lib/libgnu.a \
  $(LIBM)
groff_SOURCES = \
  src/roff/groff/groff.cpp \
  src/roff/groff/pipeline.c \
  src/roff/groff/pipeline.h
src/roff/groff/groff.$(OBJEXT): defs.h
man1_MANS += src/roff/groff/groff.1
EXTRA_DIST += src/roff/groff/groff.1.man
GROFF_OPTS_OUTPUT = \
  groff_opts_no_arg.txt \
  groff_opts_with_arg.txt
groffoptsdir = $(libprogramdir)
groffopts_DATA = $(GROFF_OPTS_OUTPUT)

groff_TESTS = \
  src/roff/groff/tests/do_not_loop_infinitely_when_breaking_cjk.sh \
  src/roff/groff/tests/dot-cp_register_works.sh \
  src/roff/groff/tests/on_latin1_device_oq_is_0x27.sh \
  src/roff/groff/tests/recognize_end_of_sentence.sh \
  src/roff/groff/tests/regression_savannah_56555.sh \
  src/roff/groff/tests/regression_savannah_58153.sh \
  src/roff/groff/tests/regression_savannah_58162.sh \
  src/roff/groff/tests/regression_savannah_58337.sh \
  src/roff/groff/tests/regression_savannah_59202.sh \
  src/roff/groff/tests/smoke-test_html_device.sh \
  src/roff/groff/tests/string_case_xform_errors.sh \
  src/roff/groff/tests/string_case_xform_requests.sh \
  src/roff/groff/tests/string_case_xform_unicode_escape.sh \
  src/roff/groff/tests/use_point_size_escape_with_single_digit_arg.sh
TESTS += $(groff_TESTS)
EXTRA_DIST += $(groff_TESTS)

groff_XFAIL_TESTS = \
  src/roff/groff/tests/string_case_xform_unicode_escape.sh
XFAIL_TESTS += $(groff_XFAIL_TESTS)

MOSTLYCLEANFILES += groff_opts.tmp $(GROFF_OPTS_OUTPUT)

groff_opts.tmp: src/roff/groff/groff.cpp
	@$(GREP) -e ':.*:.*:' $? | sed -e 's/[ \t",]//g' > $@
	@echo -n 'groff options: '
	@cat $@

groff_opts_no_arg.txt: groff_opts.tmp
	@sed -e 's/[a-zA-Z]://g' $? > $@
	@echo -n 'no arg: '
	@cat $@

groff_opts_with_arg.txt: groff_opts_no_arg.txt
	@rm -f $@
	@sed "s/[`cat $?`:]//g" groff_opts.tmp > $@
	@echo -n 'with arg: '
	@cat $@


# Local Variables:
# mode: makefile-automake
# fill-column: 72
# End:
# vim: set autoindent filetype=automake textwidth=72: