diff options
Diffstat (limited to 'src/roff/nroff/nroff.am')
-rw-r--r-- | src/roff/nroff/nroff.am | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/roff/nroff/nroff.am b/src/roff/nroff/nroff.am new file mode 100644 index 0000000..82738d9 --- /dev/null +++ b/src/roff/nroff/nroff.am @@ -0,0 +1,44 @@ +# Copyright (C) 2014-2020 Free Software Foundation, Inc. +# +# 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/>. + +prefixexecbin_SCRIPTS += nroff +nroff_srcdir = $(top_srcdir)/src/roff/nroff +PREFIXMAN1 += src/roff/nroff/nroff.1 +EXTRA_DIST += \ + src/roff/nroff/nroff.1.man \ + src/roff/nroff/nroff.sh + +nroff_TESTS = \ + src/roff/nroff/tests/verbose_option_works.sh +TESTS += $(nroff_TESTS) +EXTRA_DIST += $(nroff_TESTS) + +nroff: $(nroff_srcdir)/nroff.sh $(SH_DEPS_SED_SCRIPT) + $(AM_V_GEN)rm -f $@ \ + && sed -f $(SH_DEPS_SED_SCRIPT) \ + -e $(SH_SCRIPT_SED_CMD) \ + -e "s|[@]VERSION[@]|$(VERSION)|" \ + $(nroff_srcdir)/nroff.sh \ + >$@ \ + && chmod +x $@ + + +# Local Variables: +# mode: makefile-automake +# fill-column: 72 +# End: +# vim: set autoindent filetype=automake textwidth=72: |