Makefile 生成文件回调

Makefile 生成文件回调,makefile,Makefile,我的Makefile中有以下内容,用于查看对咖啡脚本和手写笔文件的更改 dev: @make watchCoffeescript @make watchStylus @nodemon server.coffee watchCoffeescript: @coffee -wcl public/ & watchStylus: @find public -name '*.styl' -type f | xargs stylus --watch --compress &am

我的Makefile中有以下内容,用于查看对咖啡脚本和手写笔文件的更改

dev:
  @make watchCoffeescript
  @make watchStylus
  @nodemon server.coffee

watchCoffeescript:
  @coffee -wcl public/ &

watchStylus:
  @find public -name '*.styl' -type f | xargs stylus --watch --compress &

我遇到的问题是,用于查看和编译coffeescript和手写笔文件的print语句位于nodemon命令之后。一切仍然正常,但最好在nodemon命令执行之前显示这些print语句,以便进行可视化处理。有没有办法让打印语句按顺序显示?我知道我可以在命令之间插入类似“@sleep 2”的内容,但我希望有更好的方法

可以省略符号

或者,您可以编写一个更合理的常规生成文件:

dev: watchCoffeescript watchStylus
  @nodemon server.coffee

watchCoffeescript:
  @coffee -wcl public/

watchStylus:
  @find public -name '*.styl' -type f | xargs stylus --watch --compress