summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-07-31 18:44:10 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-07-31 18:44:10 (GMT)
commitcd7f5cb1c6ba67265a4f8a1c2ecb3f3765a3013a (patch)
tree761585784f8f55d6603e6e10a256d644bafeee79 /Makefile.in
parent6acb2ecac5620bb56c6aa560c25d62a47f4c12f5 (diff)
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" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index 616ce99..4be16c5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -266,12 +266,19 @@ install-lib-main: $(DESTDIR)$(LIBDIR) $(patsubst %,install-lib-%,$(LIB_SUB_DIR))
# - 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"