How to do a clean build?

Created by Dmitry Kazakov
Keywords:

1) Go to the directory where Krita build files are stored. If you compiled using "Krita for Cats" tutorial [0], the command is:

cd $HOME/kde4/build/

2) Remove all build files

rm -rf $HOME/kde4/build/*

3) Remove all installation files

rm -rf $HOME/kde4/inst/*

4) Configure the project again

cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde4/inst $HOME/kde4/src/calligra -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPRODUCTSET=KRITA

5) Build and install as usual

make -j8 install

[0] - http://www.davidrevoy.com/article193/guide-building-krita-on-linux-for-cats