build: organize building system, support sphinx doc

Change-Id: I88ba0186a3defe1ffcbd55fb5f8ef81b5d2d3d81
diff --git a/.gitignore b/.gitignore
index 81101d8..fc3231c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,15 +1,14 @@
-.lock-waf*
+# Emacs temp files
+*~
+
+# Mac OSX
+.DS_*
+
+# waf build system
 .waf-1*
-.waf3*
+.waf3-*
+.lock*
 build/
-*.pyc
-doc/html
-.DS_Store
-animation.xml
-.R*
-*.app
-Makefile
-*.o
-ui_*
-moc_*
-*.pb.*
+
+# Compiled python code
+**/*.pyc