xref: /OK3568_Linux_fs/buildroot/package/mupdf/0001-Makefile-add-an-install_libs-target.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 0989f13ecbc2155b05da0cb091801d32d750d2d4 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?=
3 <raphael.melotte@essensium.com>
4Date: Thu, 29 Aug 2019 09:51:02 +0200
5Subject: [PATCH] Makefile: add an install_libs target.
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10This allows to install only the library files (if you need pymupdf but
11not mupdf binaries for example).
12
13Signed-off-by: Raphaël Mélotte <raphael.melotte@essensium.com>
14---
15 Makefile | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18diff --git a/Makefile b/Makefile
19index c5bc541ac..e14f88526 100644
20--- a/Makefile
21+++ b/Makefile
22@@ -322,7 +322,7 @@ libs: $(INSTALL_LIBS)
23 tools: $(TOOL_APPS)
24 apps: $(TOOL_APPS) $(VIEW_APPS)
25
26-install: libs apps
27+install_libs:
28 	install -d $(DESTDIR)$(incdir)/mupdf
29 	install -d $(DESTDIR)$(incdir)/mupdf/fitz
30 	install -d $(DESTDIR)$(incdir)/mupdf/pdf
31@@ -333,6 +333,7 @@ install: libs apps
32 	install -d $(DESTDIR)$(libdir)
33 	install -m 644 $(INSTALL_LIBS) $(DESTDIR)$(libdir)
34
35+install: libs apps install_libs
36 	install -d $(DESTDIR)$(bindir)
37 	install -m 755 $(TOOL_APPS) $(VIEW_APPS) $(DESTDIR)$(bindir)
38
39--
402.21.0
41
42