0
我試圖在命令行中使用下面的makefile運行make
。然後我收到以下錯誤make: nothing can be done for all
。下面給出了makefile的內容。make:無法爲所有人完成
GENERATED_FILES = \
dw.js/dw-2.0.js \
www/static/css/datawrapper.css \
www/static/css/chart.base.css
all: $(GENERATED_FILES)
clean:
rm -f -- $(GENERATED_FILES)
dw.js/dw-2.0.js: dw.js/src/*.js
cd dw.js
grunt
assets: www/static/css/datawrapper.css www/static/css/chart.base.css
# www/static/js/dw-2.0.js: dw.js/dw-2.0.js
# @cp dw.js/dw-2.0.js www/static/js/
# www/static/js/dw-2.0.min.js: dw.js/dw-2.0.js
# @php -r "require 'vendor/autoload.php'; file_put_contents('www/static/js/dw-2.0.min.js', \JShrink\Minifier::minify(file_get_contents('dw.js/dw-2.0.js')));"
messages:
scripts/update-messages.sh
www/static/css/datawrapper.css: assets/styles/datawrapper/* assets/styles/datawrapper/**/*
node_modules/.bin/lessc assets/styles/datawrapper/main.less > [email protected]
www/static/css/chart.base.css: assets/styles/chart.base/*
node_modules/.bin/lessc assets/styles/chart.base/main.less > [email protected]`