How do I list the defined make targets from the command line?

后端 未结 3 1263
后悔当初
后悔当初 2021-02-02 06:49

I feel almost silly for asking this but I couldn\'t find anything on this...

Suppose I have a cmake project containing a number of targets: libraries, executables, exter

3条回答
  •  广开言路
    2021-02-02 07:50

    I think you might be looking for the command make help.

    When I run make help (after running cmake ..) I get the following output:

    The following are some of the valid targets for this Makefile:
    ... all (the default if no target is provided)
    ... clean
    ... depend
    etc
    

    You could also read the Makefile that cmake auto-generates for you.

提交回复
热议问题