summaryrefslogtreecommitdiff
path: root/console-client/Makefile
diff options
context:
space:
mode:
authorDiego Nieto Cid <dnietoc@gmail.com>2011-04-03 19:18:59 -0300
committerDiego Nieto Cid <dnietoc@gmail.com>2011-04-16 23:45:23 -0300
commit806622f4dc67d84b12d51159b35aed790c84e64e (patch)
tree6946b0429824b5ed930eb25622665f1da598899b /console-client/Makefile
parent8582683290c390d8e5f551f35886eb2453f7f8e7 (diff)
Reimplement KeySymToUcs4.
* console-client/Makefile (DIST_FILES): Add xkb/kstoucs_map.sh. (kstoucs_map.c): New target. * console-client/xkb/kstoucs.c: Reimplement KeySymToUcs4. * console-client/xkb/kstoucs_map.sh: New file.
Diffstat (limited to 'console-client/Makefile')
-rw-r--r--console-client/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/console-client/Makefile b/console-client/Makefile
index b548ce22..22c4150e 100644
--- a/console-client/Makefile
+++ b/console-client/Makefile
@@ -55,7 +55,7 @@ XKB_DATA_FILES = keymap/hurd types/hurd symbols/hurd
CPPFLAGS += -DQUAERENDO_INVENIETIS
DIST_FILES = xkb/HACKING xkb/MISSING-FEATURES xkb/README xkb/TODO \
- xkb/Compose xkb/default.xkb xkb/makeconf.sh \
+ xkb/Compose xkb/default.xkb xkb/makeconf.sh xkb/kstoucs_map.sh \
$(addprefix xkb/xkb-data/, $(XKB_DATA_FILES))
include ../Makeconf
@@ -127,4 +127,12 @@ $(XKB_BASE):
$(XKB_BASE)/%: xkb/xkb-data/%
$(INSTALL_DATA) $< $@
+
+kstoucs_map.c: $(includedir)/X11/keysymdef.h $(srcdir)/xkb/kstoucs_map.sh
+ SED=$(SED) \
+ AWK=$(AWK) \
+ sh $(srcdir)/xkb/kstoucs_map.sh \
+ < $< \
+ > map.tmp && \
+ mv map.tmp $@
endif