我正在尝试创建一个可以执行多个命令的Makefile。示例:
script:
cat scripts/*.js > public/scripts/scripts.js
vendor:
cat vendor/*.js > public/scripts/vendor.js
watchStyles:
stylus -w -u nib styles/styles.styl -o public/styles
watchScripts:
watchr -e "watch('scripts/.*\.js') {system 'make scripts'}"
watchVendor:
watchr -e "watch('vendor/.*\.js') {system 'make vendor'}"现在我必须打开3个终端,这很烦人。如何通过make watch仅运行一次
watch: watchStyles watchScripts watchVendor发布于 2012-08-21 16:22:39
如果您使用的是GNU make,则使用-j option allows it to build targets in parallel,例如:
make -j4 watchStyles watchScripts watchVendorhttps://stackoverflow.com/questions/12046506
复制相似问题