4.2.  Command Line Help with Make

If you develop using the command line and Make, you can get information on the targets available by "building" the help target in your build directory:

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

You may build any target individually, and it will be built together with all of its dependencies. CMake's generated makefiles only output minimal information by default, so if you need to see the full commands used, you can run make with the extra VERBOSE argument:

    $ make VERBOSE=1
  

to output every command in full.

If you want to quickly check that your target compiles, without checking and rebuilding any of its dependencies, you can append /fast to the target name, e.g.

    $ make G4run/fast
  

This will finish with an error if any dependents of the target do not exist, but can be useful for rapidly checking that your sources simply compile.