# HG changeset patch # User "Yann E. MORIN" # Date 1214824757 0 # Node ID 1644c63e0109e9189d4a896934b9b4e269873034 # Parent 2761b358f9e68fe119e842ef7515584cdb8c5c03 Force CT_WORK_DIR to "${CT_TOP_DIR}/targets" when saving the config as a new sample. /trunk/Makefile.in | 5 3 2 0 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -r 2761b358f9e6 -r 1644c63e0109 Makefile.in --- a/Makefile.in Fri Jun 27 15:08:43 2008 +0000 +++ b/Makefile.in Mon Jun 30 11:19:17 2008 +0000 @@ -124,8 +124,9 @@ install-lib-samples: $(LIBDIR) install-lib-main @echo " INST 'samples/'" @tar cf - --exclude=.svn samples |(cd "$(LIBDIR)"; tar xf -) - @for samp_file in "$(LIBDIR)/samples/"*"/crosstool.config"; do \ - sed -r -i -e 's,\$$\{CT_TOP_DIR\},\$$\{CT_LIB_DIR\},g;' $${samp_file}; \ + @for samp_file in "$(LIBDIR)/samples/"*"/crosstool.config"; do \ + sed -r -i -e 's,\$$\{CT_TOP_DIR\},\$$\{CT_LIB_DIR\},g;' $${samp_file}; \ + sed -r -i -e 's,^(CT_WORK_DIR)=.*,\1="\$${CT_TOP_DIR}/targets",;' $${samp_file}; \ done install-doc: $(DOCDIR)