This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, mips] Fix parallel build on MIPS


On Tue, 2013-09-03 at 15:05 -0400, Mike Frysinger wrote:

> > OK, I think I understand now.  We can leave the '@' on the for
> > if we don't put a '; \' at the end of the mkdir (because then
> > they are separate shell commands).
> 
> right.  new patch LGTM.
> -mike

And it even works when I tested it, so here is the final patch that I
would like approval to commit.

Steve Ellcey
sellcey@mips.com


2013-09-04  Steve Ellcey  <sellcey@mips.com>

	* mips/Makefile.in (install): Add mkdir, fix install command.


diff --git a/libgloss/mips/Makefile.in b/libgloss/mips/Makefile.in
index 2042e48..d96478d 100644
--- a/libgloss/mips/Makefile.in
+++ b/libgloss/mips/Makefile.in
@@ -201,8 +201,9 @@ distclean maintainer-clean realclean: clean
 
 .PHONY: install info install-info clean-info
 install:
+	mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}
 	@for file in $(CRT0) $(PCRT0) $(BSP); do \
-	  $(INSTALL_DATA) $${file} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
+	  $(INSTALL_DATA) $${file} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${file}; \
 	done
 	@for script in ${SCRIPTS}; do\
 	  $(INSTALL_DATA) ${srcdir}/$${script}.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]