I am using a custom Code::Blocks Makefile project, this Makefile uses subversion in it, which is installed in /opt and everytime I try to compile my project, I get "Missing Subversion Client", because the Makefile isn't able to find my svn client (normal make from terminal works). I've tried exporting the path in ~/.bashrc and /etc/environment, but both don't work. Code::Blocks is using /bin/bash -c to invoke the make command (works too from terminal).
What am I doing wrong?