如何用WAF定义符号任务?

发布于 2025-02-13 15:54:26 字数 532 浏览 0 评论 0原文

我正在寻找一种现有基于制造的构建系统的替代方案,该系统包含用于为各种消费者进行复制,包装,拉链/解压缩操作的多个任务。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文