How do you get the list of targets in a makefile?

后端 未结 20 1464
难免孤独
难免孤独 2020-11-30 16:50

I\'ve used rake a bit (a Ruby make program), and it has an option to get a list of all the available targets, eg

> rake --tasks
rake db:charset      # ret         


        
20条回答
  •  Happy的楠姐
    2020-11-30 17:28

    I usually do:

    grep install_targets Makefile

    It would come back with something like:

    install_targets = install-xxx1 install-xxx2 ... etc
    

    I hope this helps

提交回复
热议问题