Use ${CT_TOP_DIR}/build as a base for build directories (used in default values for paths).
Remove this directory on distclean (hard-coded).
Mark the version to be 0.0.1-svn (no release yet).
1.1 --- a/Makefile Tue Apr 10 16:07:30 2007 +0000
1.2 +++ b/Makefile Tue Apr 10 16:17:39 2007 +0000
1.3 @@ -2,7 +2,7 @@
1.4 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
1.5
1.6 # The project version
1.7 -export PROJECTVERSION=0.0.1
1.8 +export PROJECTVERSION=0.0.1-svn
1.9
1.10 # This should eventually be computed if compiling out-of-tree is implemented
1.11 export CT_TOP_DIR=$(shell pwd)
1.12 @@ -23,7 +23,7 @@
1.13 @echo 'Build targets:'
1.14 @echo '* build - Build the toolchain'
1.15 @echo ' clean - Remove generated files'
1.16 - @echo ' distclean - Remove generated files and configuration'
1.17 + @echo ' distclean - Remove generated files, configuration and build directories'
1.18
1.19 include $(CT_TOP_DIR)/tools/Makefile
1.20
1.21 @@ -39,4 +39,4 @@
1.22 .PHONY: distclean
1.23 distclean:: clean
1.24 @rm -f .config* ..config.tmp
1.25 -
1.26 + @rm -rf "$(CT_TOP_DIR)/build"
2.1 --- a/config/global.in Tue Apr 10 16:07:30 2007 +0000
2.2 +++ b/config/global.in Tue Apr 10 16:17:39 2007 +0000
2.3 @@ -49,7 +49,7 @@
2.4 config TARBALLS_DIR
2.5 string
2.6 prompt "Tarballs directory"
2.7 - default "`pwd`/tarballs"
2.8 + default "${CT_TOP_DIR}/build/tarballs"
2.9 help
2.10 This is the directory into which tarballs are going to be stored once
2.11 they are downloaded (or otherwise retrieved).
2.12 @@ -57,7 +57,7 @@
2.13 config SRC_DIR
2.14 string
2.15 prompt "Extract directory"
2.16 - default "`pwd`/${CT_TARGET}/src"
2.17 + default "${CT_TOP_DIR}/build/${CT_TARGET}/${CT_CC}-${CT_CC_VERSION}-${CT_LIBC}-${CT_LIBC_VERSION}/src"
2.18 help
2.19 This is the directory into which tarballs will be extracted.
2.20
2.21 @@ -65,16 +65,20 @@
2.22 SRC_DIR for each toolchain, as different targets may require different
2.23 patches to be applied.
2.24
2.25 + You should not need to change this from the default.
2.26 +
2.27 config BUILD_DIR
2.28 string
2.29 prompt "Build directory"
2.30 - default "`pwd`/${CT_TARGET}/gcc-${CT_CC_VERSION}-${CT_LIBC}-${CT_LIBC_VERSION}"
2.31 + default "${CT_TOP_DIR}/build/${CT_TARGET}/${CT_CC}-${CT_CC_VERSION}-${CT_LIBC}-${CT_LIBC_VERSION}/build"
2.32 help
2.33 This is the directory into which builds will occur.
2.34
2.35 Once again, arrange for one build directory for each toolchain you build,
2.36 to avoid collision.
2.37
2.38 + You should not need to change this from the default.
2.39 +
2.40 config PREFIX_DIR
2.41 string
2.42 prompt "Prefix directory"