# Copyright (C) 1993-2020 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_TESTS = \
  src/roff/groff/tests/ab_works.sh \
  src/roff/groff/tests/adjustment_works.sh \
  src/roff/groff/tests/break_zero-length_output_line_sanely.sh \
  src/roff/groff/tests/device_control_escapes_express_basic_latin.sh \
  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/dot-nm_register_works.sh \
  src/roff/groff/tests/dot-nn_register_works.sh \
  src/roff/groff/tests/evc_produces_no_output_if_invalid.sh \
  src/roff/groff/tests/fp_should_not_traverse_directories.sh \
  src/roff/groff/tests/handle_special_input_code_points.sh \
  src/roff/groff/tests/html_works_with_grn_and_eqn.sh \
  src/roff/groff/tests/initialization_is_quiet.sh \
  src/roff/groff/tests/localization_works.sh \
  src/roff/groff/tests/msoquiet_works.sh \
  src/roff/groff/tests/on_latin1_device_oq_is_0x27.sh \
  src/roff/groff/tests/output_driver_C_and_G_options_work.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/some_escapes_accept_newline_delimiters.sh \
  src/roff/groff/tests/soquiet_works.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/substring_works.sh \
  src/roff/groff/tests/use_point_size_escape_with_single_digit_arg.sh
TESTS += $(groff_TESTS)
EXTRA_DIST += $(groff_TESTS)

# required test artifacts
EXTRA_DIST += \
  src/roff/groff/tests/artifacts/HONEYPOT \
  src/roff/groff/tests/artifacts/devascii/README

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


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