linux make 环境变量,shell – 如何在Makefile中设置环境变量
我想更改这个Makefile:SHELL := /bin/bashPATH:= node_modules/.bin:$(PATH)boot:@supervisor\--harmony\--watch etc,lib\--extensions js,json\--no-restart-on error\libtest:NOD...
·
我想更改这个Makefile:
SHELL := /bin/bash
PATH := node_modules/.bin:$(PATH)
boot:
@supervisor \
--harmony \
--watch etc,lib \
--extensions js,json \
--no-restart-on error \
lib
test:
NODE_ENV=test mocha \
--harmony \
--reporter spec \
test
clean:
@rm -rf node_modules
.PHONY: test clean
至:
SHELL := /bin/bash
PATH := node_modules/.bin:$(PATH)
boot:
@supervisor \
--harmony \
--watch etc,json \
--no-restart-on error \
lib
test: NODE_ENV=test
test:
mocha \
--harmony \
--reporter spec \
test
clean:
@rm -rf node_modules
.PHONY: test clean
不幸的是,第二个不工作(节点进程仍然运行默认NODE_ENV。
我错过了什么?
更多推荐
已为社区贡献2条内容
所有评论(0)