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
5 # Last update: 22 Aug 2015
7 # This file is part of groff.
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.
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
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/>.
22 gropdf_dir = $(top_srcdir)/src/devices/gropdf
24 bin_SCRIPTS += gropdf pdfmom
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
33 src/devices/gropdf/gropdf.1 \
34 src/devices/gropdf/pdfmom.1
36 gropdf: $(gropdf_dir)/gropdf.pl $(SH_DEPS_SED_SCRIPT)
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 \
46 pdfmom: $(gropdf_dir)/pdfmom.pl $(SH_DEPS_SED_SCRIPT)
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 \
56 ########################################################################
59 # mode: makefile-automake