diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-08-17 19:32:24 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-08-17 19:32:24 -0400 |
commit | 07809363127dec2e4e9a421219a5eddf05b61592 (patch) | |
tree | 8f063c0fedb3161517e95cffe7415c8d082eecce /Makefile | |
parent | da8d0fc4fa3490f418a438b7e0830f9af312d41f (diff) | |
download | musl-07809363127dec2e4e9a421219a5eddf05b61592.tar.gz musl-07809363127dec2e4e9a421219a5eddf05b61592.tar.xz musl-07809363127dec2e4e9a421219a5eddf05b61592.zip |
split up installation target
patch by Luca Barbato (lu_zero)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile index 683850d3..21a2c8d6 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,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 -f crt/*.o @@ -133,6 +133,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 |