Parallelization of recursive jobs in GNU make

后端 未结 4 1125
长情又很酷
长情又很酷 2021-02-02 16:08

I am looking for an elegant way for the parallelization of jobs in GNU make. Here is a sample of what I did so far. Make processes the directories dir-1, dir-2 and dir-3 in a se

4条回答
  •  无人共我
    2021-02-02 16:32

    SUBDIRS = a b c
    
    default: all
    
    $(SUBDIRS)::
        $(MAKE) -C $@ $(MAKECMDGOALS)
    
    all clean : $(SUBDIRS)
    

提交回复
热议问题