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 
______________________________________________________________________
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to