# HG changeset patch # User "Yann E. MORIN" # Date 1312137850 -7200 # Node ID 6fc224df66e819a3761773911747e3fabdb1f77d # Parent af55c37bbd84018648f297da3267cb800dbc1d2b Makefile: fix samples install Installing samples was not installing the C library config file and the reported.by description. Signed-off-by: "Yann E. MORIN" diff -r af55c37bbd84 -r 6fc224df66e8 Makefile.in --- a/Makefile.in Sun Jul 31 00:04:02 2011 +0200 +++ b/Makefile.in Sun Jul 31 20:44:10 2011 +0200 @@ -266,12 +266,19 @@ # - change every occurrence of CT_TOP_DIR to CT_LIB_DIR install-lib-samples: $(DESTDIR)$(LIBDIR) install-lib-main @echo " INSTDIR 'samples/'" - @for samp_file in samples/*/crosstool.config; do \ - mkdir -p "$(DESTDIR)$(LIBDIR)/$${samp_file%/*}"; \ + @for samp_dir in samples/*/; do \ + mkdir -p "$(DESTDIR)$(LIBDIR)/$${samp_dir}"; \ $(sed) -r -e 's:\$$\{CT_TOP_DIR\}:\$$\{CT_LIB_DIR\}:;' \ -e 's:^(CT_WORK_DIR)=.*:\1="\$${CT_TOP_DIR}/.build":;' \ - $${samp_file} \ - >"$(DESTDIR)$(LIBDIR)/$${samp_file}"; \ + $${samp_dir}/crosstool.config \ + >"$(DESTDIR)$(LIBDIR)/$${samp_dir}/crosstool.config"; \ + $(install) -m 644 "$${samp_dir}/reported.by" \ + "$(DESTDIR)$(LIBDIR)/$${samp_dir}"; \ + for libc_cfg in "$${samp_dir}/"*libc*.config; do \ + [ -f "$${libc_cfg}" ] || continue; \ + $(install) -m 644 "$${libc_cfg}" \ + "$(DESTDIR)$(LIBDIR)/$${samp_dir}"; \ + done; \ done @$(install) -m 644 samples/samples.mk "$(DESTDIR)$(LIBDIR)/samples/samples.mk"