variables in configure arguments
Jörg Becker
news at elke-joerg.de
Thu Dec 13 10:23:37 GMT 2007
Hello,
I have to install the targets in directories reflecting the build
configuration, host and compiler. To do so, I've defined --prefix in the
'Project Options / Configure Options / Configure arguments'. It looks like
this:
--prefix=$_/../../.. --bindir=$_/../../../bin/`eval echo
Debug-$(uname -i)-gcc$(gcc -dumpversion)` --libdir=$_/../../../bin/`eval echo
Debug-$(uname -i)-gcc$(gcc -dumpversion)` --program-suffix=-`eval echo
Debug-$(uname -i)-gcc$(gcc -dumpversion)`
Since this is neither readable nor maintainable, I'm wondering if it
is possible to define variables somewhere in kdevelop and use them, e.g. in
the 'Configure argument' or 'Environment Variables'?
What I want is defining a variable
BuildName=`eval echo $(ConfigurationName)-$(uname -i)-gcc$(gcc -dumpversion)`
instead of duplicating the definition.
Thanks for any answer.
Jörg Becker
More information about the KDevelop
mailing list