efl: generate keysym table for xcb
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Fri, 7 Dec 2012 22:50:06 +0000 (22:50 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Fri, 7 Dec 2012 22:50:06 +0000 (22:50 +0000)
SVN revision: 80502

src/Makefile.am
src/Makefile_Ecore_X.am

index 4cca020..684f54c 100644 (file)
@@ -1,6 +1,7 @@
 AUTOMAKE_OPTIONS = subdir-objects
 
 MAINTAINERCLEANFILES = Makefile.in
+BUILT_SOURCES =
 
 SUBDIRS = . benchmarks examples
 
index af0cfd6..4562e86 100644 (file)
@@ -119,6 +119,19 @@ lib/eina/libeina.la \
 
 lib_ecore_x_libecore_x_la_LDFLAGS = -no-undefined -version-info @version_info@ @release_info@
 
+if HAVE_ECORE_X_XCB
+MAINTAINERCLEANFILES += \
+$(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h \
+$(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table_h
+
+BUILT_SOURCES += \
+$(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h
+
+$(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h: $(KEYSYMDEFS) $(top_builddir)/src/utils/ecore/makekeys$(EXEEXT)
+       $(top_builddir)/src/utils/ecore/makekeys $(KEYSYMDEFS) > $(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table_h
+       mv -f $(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table_h $(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h
+endif
+
 ### Utils
 
 noinst_PROGRAMS = utils/ecore/makekeys