使用Makefile构buildjavascript

我已经克隆了一个nodejs项目,并且该项目包含一个Makefile

SRC = $(wildcard lib/**/*.js) CSS = $(wildcard lib/**/*.css) HTML = $(wildcard lib/**/*.html) COMPONENTJSON = $(wildcard lib/*/component.json) TEMPLATES = $(HTML:.html=.js) build: components $(SRC) $(CSS) $(TEMPLATES) @echo building @component build components: component.json $(COMPONENTJSON) @echo installing @component install %.js: %.html @echo converting @component convert $< minify: @component build --use component-minify clean: @echo cleaning rm -fr build components $(TEMPLATES) .PHONY: clean minify 

我以前不知道,可以用来build立JavaScript,当我运行make我得到的错误

 installing make: component: Command not found make: *** [components] Error 127 

我的问题是,
1.它是使用unix系统提供的相同的默认make,还是使用某种其他节点库?
如果这是相同的系统默认,为什么我得到错误?
链接到示例项目

该文件使用在任何Unix / Linux系统中find的相同的make 。 错误是由于component包不可用。 我使用的是安装component

 npm install -g component