aboutsummaryrefslogtreecommitdiff
path: root/newlib/Makefile.am
diff options
context:
space:
mode:
authorAlexey Lapshin <alexey.lapshin@espressif.com>2023-08-28 09:39:12 +0000
committerCorinna Vinschen <corinna@vinschen.de>2023-08-29 13:42:27 +0200
commit42eb6e5ddf49d81a17fffa1caaf61a668aab4692 (patch)
tree53d78a8566702d7b9bd42d0bf9fdc8cfac89207e /newlib/Makefile.am
parent44f73c5a620689d6821c4bd0444051be57f8251a (diff)
downloadnewlib-42eb6e5ddf49d81a17fffa1caaf61a668aab4692.zip
newlib-42eb6e5ddf49d81a17fffa1caaf61a668aab4692.tar.gz
newlib-42eb6e5ddf49d81a17fffa1caaf61a668aab4692.tar.bz2
newlib: fix 'sed' for sys headers path prefix
Precisely remove the prefix from the filepath.
Diffstat (limited to 'newlib/Makefile.am')
-rw-r--r--newlib/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/Makefile.am b/newlib/Makefile.am
index 126cf24..e29607c 100644
--- a/newlib/Makefile.am
+++ b/newlib/Makefile.am
@@ -240,7 +240,7 @@ stmp-targ-include: config.status
$(AM_V_at)s=machine/$(machine_dir)/include d= $(TARG_INCLUDE_CP_DIR)
$(AM_V_at)s=sys/$(sys_dir)/include d= $(TARG_INCLUDE_CP_DIR)
$(AM_V_at)for i in $(call rwildcard,$(srcdir)/libc/sys/$(sys_dir)/include/,*.h); do \
- f=`echo $$i | sed s:$(srcdir)/libc/sys/$(sys_dir)/include/::`; \
+ f=`echo $$i | sed s:^$(srcdir)/libc/sys/$(sys_dir)/include/::`; \
$(MKDIR_P) targ-include/`dirname $$f`; \
cp $$i targ-include/$$f; \
done
@@ -334,7 +334,7 @@ install-data-local: install-toollibLIBRARIES install-multi $(INSTALL_DATA_LOCAL)
else true; fi ; \
done ; \
for i in $(call rwildcard,$(srcdir)/libc/sys/$(sys_dir)/include/,*.h); do \
- f=`echo $$i | sed s:$(srcdir)/libc/sys/$(sys_dir)/include/::`; \
+ f=`echo $$i | sed s:^$(srcdir)/libc/sys/$(sys_dir)/include/::`; \
$(MKDIR_P) $(DESTDIR)$(tooldir)/`dirname $$f`; \
$(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/`dirname $$f`; \
done ; \