0001-Makefile-add-an-install_libs-target.patch 1.2 KB

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