3 # File position: <groff-source>/src/roff/grog/grog.am
5 # Copyright (C) 1993-2018 Free Software Foundation, Inc.
7 # Latest update: 22 Aug 2015
9 # This file is part of 'grog' which is part of 'groff'.
11 # 'groff' is free software; you can redistribute it and/or modify it
12 # under the terms of the GNU General Public License as published by
13 # the Free Software Foundation, either version 3 of the License, or
14 # (at your option) any later version.
16 # 'groff' is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 # General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24 grog_srcdir = $(top_srcdir)/src/roff/grog
26 GROG = src/roff/grog/subs.pl
28 # grog_dir is defined by a m4 macro
30 dist_grog_DATA = $(GROG)
31 man1_MANS += src/roff/grog/grog.1
33 src/roff/grog/grog.1.man \
36 # Perl version works for all parts of 'groff'.
38 grog: $(grog_srcdir)/grog.pl $(GROG) $(SH_DEPS_SED_SCRIPT)
40 && sed -f "$(SH_DEPS_SED_SCRIPT)" \
41 -e "1s|^\(#! \).*perl|\\1$(PERL)|" \
42 -e "s|[@]g[@]|$(g)|g" \
43 -e "s|[@]BINDIR[@]|$(DESTDIR)$(bindir)|g" \
44 -e "s|[@]libdir[@]|$(DESTDIR)$(libdir)|g" \
45 -e "s|[@]EGREP[@]|$(EGREP)|g" \
46 -e "s|[@]VERSION[@]|$(VERSION)|" \
47 -e "s|[@]grog_dir[@]|$(grog_dir)|" \
48 -e "$(SH_SCRIPT_SED_CMD)" \
49 $(grog_srcdir)/grog.pl \
54 ########################################################################
56 ########################################################################
59 # mode: makefile-automake
62 # vim: set filetype=automake textwidth=72: