diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-06-30 11:19:17 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-06-30 11:19:17 +0000 |
commit | 10d2b526653a8d4faa7e35fb9158daba66262a5f (patch) | |
tree | 34d735d8f0d79120e20c2e8359fc9b6b6e744c33 /Makefile.in | |
parent | 055681518cfee384e6975d8821164c6579df0657 (diff) | |
download | crosstool-ng-10d2b526653a8d4faa7e35fb9158daba66262a5f.tar.gz crosstool-ng-10d2b526653a8d4faa7e35fb9158daba66262a5f.tar.bz2 crosstool-ng-10d2b526653a8d4faa7e35fb9158daba66262a5f.zip |
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(-)
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index e658fae0..fedf4c39 100644 --- a/Makefile.in +++ b/Makefile.in @@ -124,8 +124,9 @@ install-lib-main: $(LIBDIR) 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) |