@ prefix when setting environment variable in Makefile

Use ‘@’ only once. It is only needed at the very beginning of the string, but you have it twice. The line continuations are very literal, and your current code reads:

@NODE_ENV=test @NODE_PATH=lib ./node_modules/.bin/expresso $(TESTFLAGS) $(SPECS)

The ‘@’ on NODE_PATH is getting passed to the shell, which you do not want.

Leave a Comment