Re: [Scratchbox-users] detecting scratchbox from Makefile

2008-06-24 Thread Jussi Hakala
The most reliable thing would be probably to test the presence of a scratchbox-like directory layout [1] or if env output contains any SBOX_ prefixed variables [2] (but this may lead to ambiguity between sb1 and sb2). Regards, Jussi [1] if [ -e /targets/links/scratchbox.config ] ; then

[Scratchbox-users] detecting scratchbox from Makefile

2008-06-18 Thread Aras Vaichas
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