Imported Upstream version 1.23.0
[platform/upstream/groff.git] / contrib / grap2graph / grap2graph.am
1 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
2 #
3 # This file is part of groff.
4 #
5 # groff is free software; you can redistribute it and/or modify it under
6 # the terms of the GNU General Public License as published by the Free
7 # Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
11 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13 # for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 #
18 # grap2graph.am
19 #
20
21 grap2graph_srcdir = $(top_srcdir)/contrib/grap2graph
22 bin_SCRIPTS += grap2graph
23 man1_MANS += contrib/grap2graph/grap2graph.1
24 EXTRA_DIST += \
25   $(grap2graph_srcdir)/grap2graph.sh \
26   $(grap2graph_srcdir)/grap2graph.1.man
27
28 grap2graph: $(grap2graph_srcdir)/grap2graph.sh
29         $(AM_V_GEN)sed -e "s|[@]g[@]|$(g)|g" \
30             -e "s|[@]VERSION[@]|$(VERSION)|" \
31             -e $(SH_SCRIPT_SED_CMD) $(grap2graph_srcdir)/grap2graph.sh \
32             >$@ \
33         && chmod +x $@
34
35
36 # Local Variables:
37 # fill-column: 72
38 # mode: makefile-automake
39 # End:
40 # vim: set autoindent filetype=automake textwidth=72: