[PATCH] newlib: add missing mkdir to header install
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
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