Oops, yes the `$` is escaped in the Makefile with a second one:

    [[ $(hostname) = garnet* ]] && echo "garnet.gnu" || python -c "import
sys; print sys.platform"


On Fri, Feb 28, 2014 at 10:33 AM, Chris Kees <notifications@github.com>wrote:

> In Makefile:
>
> >
> >  PROTEUS ?= $(shell pwd)
> > -PROTEUS_ARCH ?= $(shell python -c "import sys; print sys.platform")
> > +VER_CMD = git log -1 --pretty="%H"
> > +# shell hack for now to automatically detect Garnet front-end nodes
> > +PROTEUS_ARCH ?= $(shell [[ $$(hostname) = garnet* ]] && echo "garnet.gnu" || python -c "import sys; print sys.platform")
>
> cekees@chewbacca:~/proteus$ [[ $$(hostname) = garnet* ]] && echo
> "garnet.gnu" || python -c "import sys; print sys.platform"
> bash: unexpected token (', conditional binary operator expected
> bash: syntax error near$$(h'
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/erdc-cm/proteus/pull/39/files#r10167841>
> .
>