@ - Präfix beim setzen von environment-variable im Makefile

Hier ist, was ich habe, so weit:

SPECS = $(shell find spec -iname "*_spec.js")

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

cov:
    @TESTFLAGS=--cov $(MAKE) spec

.PHONY: spec cov

Ausgabe: /bin/sh: @NODE_PATH=lib: command not found

Wenn ich nur noch eine variable es ist in Ordnung arbeiten. Was mache ich falsch?

InformationsquelleAutor 7elephant | 2011-11-05
Schreibe einen Kommentar