This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] * msp430/Makefile.in: respect DESTDIR during install
- From: Tim Harder <radhermit at gmail dot com>
- To: newlib at sourceware dot org
- Date: Wed, 22 Oct 2014 18:55:18 -0400
- Subject: [PATCH] * msp430/Makefile.in: respect DESTDIR during install
- Authentication-results: sourceware.org; auth=none
---
libgloss/msp430/Makefile.in | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libgloss/msp430/Makefile.in b/libgloss/msp430/Makefile.in
index d72051d..b9f5a6a 100644
--- a/libgloss/msp430/Makefile.in
+++ b/libgloss/msp430/Makefile.in
@@ -12,6 +12,7 @@
# Makefile for libgloss/msp430.
+DESTDIR =
VPATH = @srcdir@
srcdir = @srcdir@
objdir = .
@@ -152,12 +153,13 @@ utime.o : $(SDEPS)
write.o : $(SDEPS)
install: $(CRT) $(SIM_BSP) $(LIB_CIO) $(LIB_CRT) $(SCRIPTS)
+ mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}
for c in $(CRT) $(SIM_BSP) $(LIB_CIO) $(LIB_CRT); do \
- $(INSTALL_DATA) $$c $(tooldir)/lib${MULTISUBDIR}/$$c ;\
+ $(INSTALL_DATA) $$c $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$$c ;\
done
for c in $(SCRIPTS); do \
b=`basename $$c`; \
- $(INSTALL_DATA) $$c $(tooldir)/lib${MULTISUBDIR}/$$b ;\
+ $(INSTALL_DATA) $$c $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$$b ;\
done
clean mostlyclean:
--
2.1.2