如何用WAF定义符号任务?
我正在寻找一种现有基于制造的构建系统的替代方案,该系统包含用于为各种消费者进行复制,包装,拉链/解压缩操作的多个任务。
Make具有带有名称的“虚假”任务,可以取决于根据MakeFile中给出的规则生成的多个文件。
pseudo代码示例在makefile:
file123: input1 input2
zip input1 input2
filexyz: input11 input12
zip input11 input12
.PHONY: command1
command1: file123 filexyz
copy file123 targetdir
copy filexyz targetdir
执行“ make command1”,make将根据给出的规则生成file123和filexyz。
命令1是一个假目标:没有真实的文件命令1。
如何在WAF中定义此类任务?我想查看将文件作为输入的命令。
I am looking for an alternative for an existing make-based build system that contains multiple tasks for copyiing, packaging, zipping/unzipping actions for various consumers.
Make has 'phony' tasks with a name, that can depend on multiple files that are generated according to rules given in the makefile.
pseudo-code Example in makefile:
file123: input1 input2
zip input1 input2
filexyz: input11 input12
zip input11 input12
.PHONY: command1
command1: file123 filexyz
copy file123 targetdir
copy filexyz targetdir
executing "make command1", make would generate file123 and filexyz according to the rules given.
command1 is a phony target: there is no real file command1.
How could I define such tasks in waf? I would like to see commands that have files as inputs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论