複数のコマンドを実行する 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 つの端末を開く必要があり、面倒です。経由で 1 つだけを実行するにはどうすればよいmake watch
ですか?
watch: watchStyles watchScripts watchVendor