1. generally sudo is dangerous in the first 3 commands and it is not recommended to use it
2. make install is dangerous to use over an old install, because there might be old files that get loaded and produce random crashes
2.1 if you want to use make install it is safer to use --prefix=/home/myuser/software/cb/ and before doing the make install execute rm /home/myuser/software/cb/, this way you'll get a clean install. Putting everything in /usr/local makes it impossible to remove just codeblocks.
3. it is better to learn how to build debian packages, it is a lot safer in the longer run and it isn't very complex.
So just to be sure your install is clean please remove everything related to codeblocks in /usr/local and do another make install.
Jens' comments are valid, too.