Command Line Options and Environment Variables

Command Line Usage
is designed to be run as follows:
kdesrc-build --options modules to build
If no modules to build are specified on the command line, then kdesrc-build will build all modules defined in its configuration file, in the order listed in that file (although this can be modified by various configuration file options).

Commonly used command line options
The full list of command line options is given in . The most-commonly used options include:
--pretend (or -p) 	This option causes to indicate what actions it would take, without actually really implementing them. This can be useful to make sure that the modules you think you are building will actually get built.
--refresh-build 	This option forces to build the given modules from an absolutely fresh start point. Any existing build directory for that module is removed and it is rebuilt. This option is useful if you have errors building a module, and sometimes is required when or libraries change.
--no-src 	This option skips the source update process. You might use it if you have very recently updated the source code (perhaps you did it manually or recently ran ) but still want to rebuild some modules.
--no-build 	This option is similar to --no-src above, but this time the build process is skipped.

Specifying modules to build
In general, specifying modules to build is as simple as passing their module name as you defined it in the configuration file. You can also pass modules that are part of a module set, either as named on use-modules, or the name of the entire module set itself, if you have given it a name.
In the specific case of module sets based against the KDE project database, will expand module name components to determine the exact module you want. For example, 's KDE project entry locates the project in extragear/utils/kdesrc-build. You could specify any of the following to build :

% kdesrc-build +extragear/utils/kdesrc-build
% kdesrc-build +utils/kdesrc-build
% kdesrc-build +kdesrc-build

The commands in the previous example preceded the module-name with a +. This forces the module name to be interpreted as a module from the KDE project database, even if that module hasn't been defined in your configuration file.
Be careful about specifying very generic projects (e.g. extragear/utils by itself), as this can lead to a large amount of modules being built. You should use the --pretend option before building a new module set to ensure it is only building the modules you want.