build: Makefile.am corrections (separate Makefile.am for tests)

Change-Id: I69f442d5b7dee7fd7c20d10bd4229e692ee1193d
diff --git a/.gitignore b/.gitignore
index 0670a81..fed2661 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,8 +14,10 @@
 *~
 
 # Autoconf files
-/Makefile
-/include/Makefile
+Makefile
+Makefile.in
+.libs
+.deps
 /autom4te.cache
 config.log
 /config.status
@@ -47,7 +49,6 @@
 config.sub
 configure
 depcomp
-include/Makefile.in
 include/config.h.in
 install-sh
 ltmain.sh