automake: fix 'make commit-headers'
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 7 Sep 2014 14:54:16 +0000 (15:54 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 28 Sep 2014 16:09:33 +0000 (17:09 +0100)
Not too long ago the in-kernel drm public headers were moved. Since then
we could no longer fetch/update the ones in libdrm using the command.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Makefile.am

index a9ec25b..884841f 100644 (file)
@@ -80,8 +80,8 @@ endif
 
 
 copy-headers :
-       cp -r $(kernel_source)/usr/include/drm $(top_srcdir)/include
+       cp -r $(kernel_source)/include/uapi/drm/*.h $(top_srcdir)/include/drm/
 
 commit-headers : copy-headers
-       git add include
+       git add include/drm/*.h
        git commit -am "Copy headers from kernel $$(GIT_DIR=$(kernel_source)/.git git describe)"