makefile包含具有新功能的文件

时间:2018-07-28 20:01:08

标签: makefile

我的Makefile可以按预期工作,现在我需要将其拆分为几个文件(开始时说两个),而Makefile仍像以前一样运行(使用make时为1个文件) ,怎么办?

我了解了include,但由于我有依赖性,这里的问题有点不同

    F_DIR := $(shell fzr temp)

    .PHONY:run1 run2 run3

    seq = run1 run2 run3

run1:
   "echo test1"

run2:
   "echo test2"

run3:
   "echo test3"
        # wait to all runs will finises and then zip the artifacts
zip:$(seq)
   fzr zip 

clean:$(seq) zip
   fzr clean

在这里,我需要将run1-3的目标移至新文件,并保留所有其他目标 像zip clean F_DIR

0 个答案:

没有答案
相关问题