Building Clang Plugin using Cmake

Hello,everyone i am a newbie and i am trying to build a clang plugin .

The article that i am referring is:

I am getting make errors while building PrintFunctionNames example .The
errors are:
root@bt:/opt/llvm3.0/llvm/example/build# make
printer/CMakeFiles/PrintFunctionNames.dir/flags.make:6: *** commands
commence before first target. Stop.
make[1]: *** [printer/CMakeFiles/PrintFunctionNames.dir/all] Error 2
make: *** [all] Error 2

Did anyone else get this type of error while building clang plugin and is
there a simple way to build clang plugins.
Your help will be appreciated.
Thank you.