[gimp-help] build: add support for (un)installing quickreference pdf files
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-help] build: add support for (un)installing quickreference pdf files
- Date: Sun, 13 Mar 2022 23:11:45 +0000 (UTC)
commit 23654568993bd339d6d2415761fbe5e22b14738f
Author: Jacob Boerema <jgboerema gmail com>
Date: Tue Mar 8 17:52:07 2022 -0500
build: add support for (un)installing quickreference pdf files
(cherry picked from commit ffbe7f9cec87d8183829b69c31ff1f0b6e6ed1f3)
quickreference/Makefile.am | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
---
diff --git a/quickreference/Makefile.am b/quickreference/Makefile.am
index 105974401..4493ae3d6 100644
--- a/quickreference/Makefile.am
+++ b/quickreference/Makefile.am
@@ -7,6 +7,8 @@ POT_FILES = $(srcdir)/po/gimp-keys.pot
PO_FILES = $(foreach lang,$(filter-out en,$(QUICKREFERENCE_ALL_LINGUAS)),$(srcdir)/po/$(lang).po)
+PDF_FILES = $(foreach lang,$(QUICKREFERENCE_LINGUAS),gimp-keys-$(lang).pdf)
+
XSL_FILES = \
stylesheets/keys-svg.xsl \
stylesheets/keys-docbook.xsl
@@ -25,6 +27,9 @@ EXTRA_DIST = \
COMPENDIUM = Compendium.po
+# gimp-help directories
+helpdir = $(gimpdatadir)/help
+
$(srcdir)/po/gimp-keys.pot: $(srcdir)/gimp-keys.xml
@echo Making $@; \
$(XML2PO) $(XML2POFLAGS) $< | $(MSGUNIQ) --width=$(MSGWIDTH) - > $@
@@ -89,6 +94,26 @@ docbook: $(foreach lang,$(QUICKREFERENCE_LINGUAS),docbook/gimp-keys-$(lang).xml)
all-local: svg pdf-local docbook
+install-data-local:
+ @$(MKDIR_P) $(DESTDIR)$(helpdir)/pdf || exit 77
+ @echo "*** Installing Quickreference PDF's into: $(DESTDIR)$(helpdir)/pdf"
+ @cd pdf; \
+ for file in $(PDF_FILES); do \
+ cp -f $${file} $(DESTDIR)$(helpdir)/pdf/$* ; \
+ done; \
+ echo .
+
+uninstall-local:
+ @test -d $(DESTDIR)$(helpdir)/pdf || exit 70
+ @echo "*** Uninstalling PDF:"
+ @for file in $(PDF_FILES); do \
+ rm -rf $(DESTDIR)$(helpdir)/pdf/$${file}; \
+ done; \
+ echo .
+ @test -z "$(DESTDIR)" || cd $(DESTDIR) && \
+ rmdir $(helpdir)/pdf \
+ && echo "Removed $(DESTDIR)${helpdir}/pdf"
+
clean-local:
@echo "*** Cleaning up ..."
@rm -rf docbook
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]