[gimp-help] build: add support for building Quickreference pdf's using rsvg-convert
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-help] build: add support for building Quickreference pdf's using rsvg-convert
- Date: Sun, 13 Mar 2022 23:11:44 +0000 (UTC)
commit 8cd8e1660c6bbcd2018c0204fc3516e91c9d460c
Author: Jacob Boerema <jgboerema gmail com>
Date: Tue Feb 22 18:21:52 2022 -0500
build: add support for building Quickreference pdf's using rsvg-convert
We failed to figure out how to use dblatex to generate pdf's, so we
decided to use rsvg-convert to convert the svg files to pdf's.
This is a first step. Still to do:
- Support for installing the pdf's.
- Autodetect if rsvg-convert is available or not.
(cherry picked from commit deaf6c81efce7144a09fb38c23f18d9046cbda77)
quickreference/Makefile.am | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/quickreference/Makefile.am b/quickreference/Makefile.am
index 6d107237e..0cf4f48dd 100644
--- a/quickreference/Makefile.am
+++ b/quickreference/Makefile.am
@@ -65,6 +65,16 @@ svg/gimp-keys-%.svg: xml/gimp-keys-%.xml stylesheets/keys-svg.xsl
svg: $(foreach lang,$(QUICKREFERENCE_LINGUAS),svg/gimp-keys-$(lang).svg)
+SVG2PDF = rsvg-convert
+SVG2PDF_FLAGS = -a -f Pdf
+
+pdf/gimp-keys-%.pdf: svg/gimp-keys-%.svg
+ @$(MKDIR_P) pdf
+ @if test -f pdf/%.pdf; then rm -f pdf/%.pdf; fi
+ @echo "*** Making Quickreference PDF ($*) ..."
+ @$(SVG2PDF) $(SVG2PDF_FLAGS) -o $@ $<
+
+pdf-local: $(foreach lang,$(QUICKREFERENCE_LINGUAS),pdf/gimp-keys-$(lang).pdf)
docbook/gimp-keys-%.xml: xml/gimp-keys-%.xml stylesheets/keys-docbook.xsl
$(MKDIR_P) docbook
$(XSLTPROC) \
@@ -74,13 +84,15 @@ docbook/gimp-keys-%.xml: xml/gimp-keys-%.xml stylesheets/keys-docbook.xsl
docbook: $(foreach lang,$(QUICKREFERENCE_LINGUAS),docbook/gimp-keys-$(lang).xml)
-all-local: svg docbook
+all-local: svg pdf-local docbook
clean-local:
- rm -rf docbook
- rm -rf svg
- rm -rf xml
- rm -f .xml2po.mo
+ @echo "*** Cleaning up ..."
+ @rm -rf docbook
+ @rm -rf pdf
+ @rm -rf svg
+ @rm -rf xml
+ @rm -f .xml2po.mo
.DELETE_ON_ERROR:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]