Now builds targets in cc directory.
Now correctly cleans doc directory.
Uses instead of cp, mkdir and chmod.