[GE users] Export of makefile variables from qmake

David Marshall marshall at vitesse.com
Tue Aug 3 15:56:26 BST 2004


Greetings-
Export of makefile variables from qmake does not seem to work.
As shown in below example, it works fine with GNU Make version 3.79.1, 
but not with qmake.  Does qmake not support export of makefile 
variables, or is there a configuration trick, that we have missed?

Export of environment variables (from initial shell, through qmake to
programs launched by qmake) works fine. Only the export of variables 
defined (and exported) in the Makefile appears not to work with qmake 
(but works fine with normal GNU Make).

Example:
$ cat Makefile
# === Top of File ===
MAKEFILE_VARIABLE=this_and_that
export MAKEFILE_VARIABLE

target:
test.sh
# === End of File ===


$ cat test.sh
#!/bin/sh
echo "MAKEFILE_VARIABLE=$MAKEFILE_VARIABLE"
# === End of script ===


 >> Test, using gmake
$ make
test.sh
MAKEFILE_VARIABLE=this_and_that

 >> Same test, now with qmake. Note that the value of "MAKEFILE_VARIABLE"
 >> is not exported to test.sh
$ qmake -cwd -V --
qmake: *** cannot determine architecture from environment variable ARCH
no default architecture set
test.sh
backend07.dk.vitesse.com
MAKEFILE_VARIABLE=

 >> Version information:
$ qmake -v
GNU Make version 3.78.1-distributed make
load balancing by Grid Engine
, by Richard Stallman and Roland McGrath.
Built for i586-pc-linux-gnu[cut]

$ make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-redhat-linux-gnu



Thanks in advance,
Dave M.

--
David B. Marshall
Senior Systems Administrator
Vitesse Semiconductor Corp.
office: 719.867.6287    cell: 719.337-2284





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list