telling 'make' to ignore dependencies when the top target has been created

前端 未结 5 487
天涯浪人
天涯浪人 2021-02-05 05:34

I\'m running the following kind of pipeline:

digestA: hugefileB hugefileC
    cat $^ > $@
    rm $^

hugefileB:
    touch $@

hugefileC:
    touch $@
<         


        
5条回答
  •  执笔经年
    2021-02-05 05:52

    I would recommend you to create pseudo-cache files that are created by the hugefileB and hugeFileC targets.

    Then have digestA depend on those cache files, because you know they will not change again until you manually invoke the expensive targets.

提交回复
热议问题