public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] newlib: add missing mkdir to header install
@ 2022-02-16  2:07 Mike Frysinger
  2022-02-16  8:50 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2022-02-16  2:07 UTC (permalink / raw)
  To: newlib

Make sure these subdirs exist before trying to install headers into them.
---
 newlib/Makefile.am | 1 +
 newlib/Makefile.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/newlib/Makefile.am b/newlib/Makefile.am
index 67fb1e8ba074..6d3b60b330b0 100644
--- a/newlib/Makefile.am
+++ b/newlib/Makefile.am
@@ -335,6 +335,7 @@ install-data-local: install-toollibLIBRARIES install-multi
 	  done ; \
 	  for i in $(srcdir)/libc/sys/$(sys_dir)/include/*; do \
 	    if [ -d $$i ]; then \
+	    $(MKDIR_P) $(DESTDIR)$(tooldir)/include/`basename $$i`; \
 		for j in $$i/*.h; do \
 	            $(INSTALL_DATA) $$j $(DESTDIR)$(tooldir)/include/`basename $$i`/`basename $$j`; \
 		done ; \
diff --git a/newlib/Makefile.in b/newlib/Makefile.in
index 969027f7cf00..5a83f8608451 100644
--- a/newlib/Makefile.in
+++ b/newlib/Makefile.in
@@ -1624,6 +1624,7 @@ install-data-local: install-toollibLIBRARIES install-multi
 	  done ; \
 	  for i in $(srcdir)/libc/sys/$(sys_dir)/include/*; do \
 	    if [ -d $$i ]; then \
+	    $(MKDIR_P) $(DESTDIR)$(tooldir)/include/`basename $$i`; \
 		for j in $$i/*.h; do \
 	            $(INSTALL_DATA) $$j $(DESTDIR)$(tooldir)/include/`basename $$i`/`basename $$j`; \
 		done ; \
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-16  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-16  2:07 [PATCH] newlib: add missing mkdir to header install Mike Frysinger
2022-02-16  8:50 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).