From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1097 Path: news.gmane.org!not-for-mail From: Luca Barbato Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 3/3] makefile: split install target Date: Wed, 13 Jun 2012 07:22:03 +0200 Message-ID: <1339564923-13703-4-git-send-email-lu_zero@gentoo.org> References: <1339564923-13703-1-git-send-email-lu_zero@gentoo.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1339564953 18854 80.91.229.3 (13 Jun 2012 05:22:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2012 05:22:33 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1099-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jun 13 07:22:33 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Seg2H-0003tt-6v for gllmg-musl@plane.gmane.org; Wed, 13 Jun 2012 07:22:29 +0200 Original-Received: (qmail 20164 invoked by uid 550); 13 Jun 2012 05:22:29 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 20156 invoked from network); 13 Jun 2012 05:22:29 -0000 X-Mailer: git-send-email 1.7.8.rc1 In-Reply-To: <1339564923-13703-1-git-send-email-lu_zero@gentoo.org> Xref: news.gmane.org gmane.linux.lib.musl.general:1097 Archived-At: Introduce install-headers, install-libs, install-tools --- Makefile | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4bc1b63..0c2b0d5 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ LDSO_PATHNAME = $(syslibdir)/ld-musl-$(ARCH).so.1 all: $(ALL_LIBS) $(ALL_TOOLS) -install: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(ALL_INCLUDES:include/%=$(DESTDIR)$(includedir)/%) $(ALL_TOOLS:tools/%=$(DESTDIR)$(bindir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),) +install: install-libs install-headers install-tools clean: $(RM) crt/*.o @@ -146,6 +146,14 @@ $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(syslibdir) $(DESTDIR)$(syslibdir): $(INSTALL) -d -m 755 $(DESTDIR)$(syslibdir) +install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),) + +install-headers: $(ALL_INCLUDES:include/%=$(DESTDIR)$(includedir)/%) + +install-tools: $(ALL_TOOLS:tools/%=$(DESTDIR)$(bindir)/%) + + + .PRECIOUS: $(CRT_LIBS:lib/%=crt/%) -.PHONY: all clean install +.PHONY: all clean install install-libs install-headers install-tools -- 1.7.8.rc1