Imported Upstream version 1.22.4
[platform/upstream/groff.git] / contrib / gperl / gperl.am
1 # Automake rules for 'gperl' (preprocessor for added Perl parts)
2
3 # File position: <groff-source>/contrib/gperl/gperl.am
4
5 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
6 # Written by Bernd Warken <groff-bernd.warken-72@web.de>.
7 # Automake migration by Bertrand Garrigues
8
9 # Last update: 22 Aug 2015
10
11 # This file is part of 'gperl' which is part of 'groff'.
12
13 # 'groff' is free software; you can redistribute it and/or modify it
14 # under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 2 of the License, or
16 # (at your option) any later version.
17
18 # 'groff' is distributed in the hope that it will be useful, but
19 # WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 # General Public License for more details.
22
23 # You should have received a copy of the GNU General Public License
24 # along with this program.  If not, see
25 # <http://www.gnu.org/licenses/gpl-2.0.html>.
26
27 ########################################################################
28
29 bin_SCRIPTS += gperl
30 man1_MANS += contrib/gperl/gperl.1
31 EXTRA_DIST += \
32   contrib/gperl/ChangeLog \
33   contrib/gperl/gperl.1.man \
34   contrib/gperl/gperl.pl
35
36 gperl: $(top_srcdir)/contrib/gperl/gperl.pl shdeps.sed
37         $(AM_V_GEN)$(RM) $@ \
38         && sed -f "$(SH_DEPS_SED_SCRIPT)" \
39                -e "s|[@]g[@]|$(g)|g" \
40                -e "s|[@]BINDIR[@]|$(DESTDIR)$(bindir)|g" \
41                -e "s|[@]VERSION[@]|$(VERSION)|g" \
42                -e "$(SH_SCRIPT_SED_CMD)" \
43                $(top_srcdir)/contrib/gperl/gperl.pl \
44                >$@ \
45         && chmod +x $@
46
47
48 ########################################################################
49 # Editor settings
50 ########################################################################
51 #
52 # Local Variables:
53 # mode: makefile-automake
54 # fill-column: 72
55 # End:
56 # vim: set filetype=automake textwidth=72: