Makefile 压缩求助。。。!!!!
 发布于 10 年前  作者 petitspois  5008 次预览  最后一次回复是 10 年前  来自 问答 
assets/js/很多目录/*.js > (一一对应)  dest/js/很多目录/*.min.js

如何实现呢,小白求教。。

//这是压缩成一个
app_bundle := build/app.js
$(app_bundle): $(build_files) $(template_js)
    uglifyjs -cmo $@ $^
min: $(app_bundle)
2 回复
7anshuai

@petitspois 之前翻译过一篇 Makefile for Node.js package,用到的也是这种通配符规则