Imported Upstream version 1.22.4
[platform/upstream/groff.git] / src / devices / gropdf / gropdf.am
1 # Copyright (C) 2011-2018 Free Software Foundation, Inc.
2 #  Original Makefile.sub written by Deri James <deri@chuzzlewit.demon.co.uk>.
3 #  Automake migration by Bertrand Garrigues
4 #
5 # Last update: 22 Aug 2015
6 #
7 # This file is part of groff.
8 #
9 # groff is free software; you can redistribute it and/or modify it under
10 # the terms of the GNU General Public License as published by the Free
11 # Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
13 #
14 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
15 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17 # for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
22 gropdf_dir = $(top_srcdir)/src/devices/gropdf
23
24 bin_SCRIPTS += gropdf pdfmom
25 EXTRA_DIST += \
26   src/devices/gropdf/TODO \
27   src/devices/gropdf/gropdf.pl \
28   src/devices/gropdf/pdfmom.pl \
29   src/devices/gropdf/gropdf.1.man \
30   src/devices/gropdf/pdfmom.1.man
31
32 man1_MANS += \
33   src/devices/gropdf/gropdf.1 \
34   src/devices/gropdf/pdfmom.1
35
36 gropdf: $(gropdf_dir)/gropdf.pl $(SH_DEPS_SED_SCRIPT)
37         $(AM_V_GEN)$(RM) $@ \
38         && sed -f $(SH_DEPS_SED_SCRIPT) \
39                -e "s|[@]VERSION[@]|$(VERSION)|" \
40                -e "s|[@]PERL[@]|$(PERL)|" \
41                -e "s|[@]GROFF_FONT_DIR[@]|$(fontpath)|" \
42                -e "s|[@]RT_SEP[@]|$(RT_SEP)|" $(gropdf_dir)/gropdf.pl \
43                >$@ \
44         && chmod +x $@
45
46 pdfmom: $(gropdf_dir)/pdfmom.pl $(SH_DEPS_SED_SCRIPT)
47         $(AM_V_GEN)$(RM) $@ \
48         && sed -f $(SH_DEPS_SED_SCRIPT) \
49                -e "s|[@]VERSION[@]|$(VERSION)|" \
50                -e "s|[@]RT_SEP[@]|$(RT_SEP)|" \
51                -e "s|[@]PERL[@]|$(PERL)|" $(gropdf_dir)/pdfmom.pl \
52                >$@ \
53         && chmod +x $@
54
55
56 ########################################################################
57 ### Emacs settings
58 # Local Variables:
59 # mode: makefile-automake
60 # End: