Hi,

Am 12.03.2013 um 09:45 schrieb Pierre Lindenbaum:

> Some targets in my makefile shouldn't be built in a SGE environment.
> 
> Is there a $(MAKE) variable that could detect that a Makefile has been 
> invoked with qmake+SGE ? (qmake 3.78.1)
> 
> So far, I found that ${NSLOTS} is defined in a Makefile if it is invoked with 
> "qmake -cwd -v PATH -l arch...".
> Is it a safe way to detect this ?

I would say so. There is even a dedicated one $ENVIRONMENT for this purpose 
which is set to BATCH if running under SGE (`man qsub`) which should be 
inherited to the make process too.

-- Reuti


> Thank you,
> 
> Pierre
> 
> PS: by the way, in "GNU Make version 3.78.1-distributed make". The variable 
> $(.VARIABLES) is undefined.
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to