summaryrefslogtreecommitdiff
path: root/src/devices/gropdf/Makefile.sub
diff options
context:
space:
mode:
authorwl <wl>2012-08-31 12:17:33 +0000
committerwl <wl>2012-08-31 12:17:33 +0000
commit847b504be937b13d472024555b5abd7f094aa739 (patch)
tree6b6a75bb27ec545a8cdf4c54f698a94675a59b05 /src/devices/gropdf/Makefile.sub
parenta529116ae6922d775b4270adcdb2c0f227831957 (diff)
downloadgroff-847b504be937b13d472024555b5abd7f094aa739.tar.gz
Add `pdfmom' to handle mom documents with gropdf.
* Makefile.in (OTHERDIRS): Move contrib/mom to be run after devices/gropdf. * src/devices/gropdf/gropdf.pl: Various fixes: . Correct image scaling issue. . Handle relative horizontal movement 'h' followed by absolute vertical movement 'V'. . Correct handling of track kerning. * src/devices/gropdf/pdfmom.pl: New wrapper for mom (pdfmom) using gropdf or grops driver. * src/devices/gropdf/pdfmom.man: New man page. * src/devices/gropdf/Makefile.sub: Updated to handle new files.
Diffstat (limited to 'src/devices/gropdf/Makefile.sub')
-rw-r--r--src/devices/gropdf/Makefile.sub17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/devices/gropdf/Makefile.sub b/src/devices/gropdf/Makefile.sub
index 30991e52..6aa409d4 100644
--- a/src/devices/gropdf/Makefile.sub
+++ b/src/devices/gropdf/Makefile.sub
@@ -1,4 +1,4 @@
-# Copyright (C) 2011 Free Software Foundation, Inc.
+# Copyright (C) 2011-2012 Free Software Foundation, Inc.
# Written by Deri James <deri@chuzzlewit.demon.co.uk>
#
# This file is part of groff.
@@ -17,10 +17,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
MAN1=\
- gropdf.n
+ gropdf.n \
+ pdfmom.n
CMDFILES=\
- gropdf
+ gropdf \
+ pdfmom
MOSTLYCLEANADD=\
gropdf \
@@ -30,7 +32,7 @@ MOSTLYCLEANADD=\
RM=rm -f
-all: gropdf
+all: gropdf pdfmom
gropdf: gropdf.pl $(SH_DEPS_SED_SCRIPT)
@@ -42,6 +44,13 @@ gropdf: gropdf.pl $(SH_DEPS_SED_SCRIPT)
-e "s|@RT_SEP@|$(RT_SEP)|" $(srcdir)/gropdf.pl >$@
chmod +x $@
+pdfmom: pdfmom.pl $(SH_DEPS_SED_SCRIPT)
+ $(RM) $@
+ sed -f $(SH_DEPS_SED_SCRIPT) \
+ -e "s|@VERSION@|$(version)$(revision)|" \
+ -e "s|@PERLPATH@|$(PERLPATH)|" $(srcdir)/pdfmom.pl >$@
+ chmod +x $@
+
install_data:
-test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir)
for f in $(CMDFILES); do \