[Scratchbox-users] detecting scratchbox from Makefile

Aras Vaichas arasv at magtech.com.au
Wed Jun 18 09:40:57 EEST 2008


Hi,

I've written a Makefile which checks to see if it is running within
Scratchbox:

dummy:
ifeq ($(strip $(SBOX_USE_CCACHE)),yes)
       make $(EXECUTABLE)
else
       scratchbox -d $(DIRECTORY) make $(EXECUTABLE)
endif

I chose SBOX_USE_CCACHE pretty much at random as a way of detecting the scratchbox environment. 

Is there a better or proper way?

Aras Vaichas



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


More information about the Scratchbox-users mailing list