makefile - 使用 patsubst : need two substitutions 的 GNU Make

标签 makefile

我需要在替换变量替换中两次引用词干:
O23=$(OROOTS:%=$(ODIR)/overx-%2wk-%3wk.mlb)
我需要用相同的词干执行两次替换,但替换使用 patsubst只做第一个。我们如何才能做到这两点?

最佳答案

杂乱无章:

O23=$(join $(OROOTS:%=$(ODIR)/overx-%2wk), $(OROOTS:%=-%3wk.mlb))

关于makefile - 使用 patsubst : need two substitutions 的 GNU Make,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5224055/

相关文章:

c++ - 使用 makefile 隐藏 clang 警告

c - Makefile - 在不进行任何更改的情况下编译库和可执行文件

c++ - 如何编译依赖于 C++ 目标文件的 CUDA 共享库?

makefile - 将命令行参数作为 Makefile 中的目标传递

带有参数的 makefile 宏

linux - 制作PCA-SIFT代码时如何指定pgm库的include和lib路径

haskell - 为 GHC 和 Makefile 样式构建生成正确的链接依赖项

c++ - 编译.h文件

makefile - 为什么 make 提示循环依赖?

linux - makefile 中的 while 循环