From 5fabc18b8e67f931b0fcea40731c26fb58b8e6d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= Date: Thu, 10 Jun 2021 10:33:23 +0200 Subject: [PATCH] Makefile: add an install_libs target. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows to install only the library files (for example, pymupdf requires the libraries, but doesn't need the binaries). Signed-off-by: Raphaël Mélotte --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9c8b82ee15..7c58411f22 100644 --- a/Makefile +++ b/Makefile @@ -392,7 +392,7 @@ libs: $(LIBS_TO_INSTALL_IN_BIN) $(LIBS_TO_INSTALL_IN_LIB) tools: $(TOOL_APPS) apps: $(TOOL_APPS) $(VIEW_APPS) -install: libs apps +install_libs: install -d $(DESTDIR)$(incdir)/mupdf install -d $(DESTDIR)$(incdir)/mupdf/fitz install -d $(DESTDIR)$(incdir)/mupdf/pdf @@ -405,6 +405,7 @@ ifneq ($(LIBS_TO_INSTALL_IN_LIB),) install -m 644 $(LIBS_TO_INSTALL_IN_LIB) $(DESTDIR)$(libdir) endif +install: libs apps install_libs install -d $(DESTDIR)$(bindir) install -m 755 $(LIBS_TO_INSTALL_IN_BIN) $(TOOL_APPS) $(VIEW_APPS) $(DESTDIR)$(bindir)