[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ A ] [ B ] [ next ]


ccbuild - A strict developer's build utility
Chapter 4 - Cleaning


For cleaning your sourcetree, ccbuild offers two commands: clean and distclean. Although they might act almost the same, they are implemented quite different.

The distclean command is totally source independent: it doesn't scan sources, nor look for them. Distclean simply removes all ccbuild related file in "o" directories and all ".gch" everywhere. So it will try to remove any file matching: */o/*.md5, */o/*.o, *.gch and o.

The clean command is much more subtle: it reads the sources and removes any objects part of the current source tree. Because it reads the sources, using clean will only remove those sources part of the given or implied main binary target(s).

General rule is to use the force command when you want to update everything, use the clean when you want to remove all files for a local binary target (but not any other binary targets in the local directory) and use distclean to remove everything including old objects and precompiled headers.


[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ A ] [ B ] [ next ]


ccbuild - A strict developer's build utility

1.5.7

A. Bram Neijt