chiark / gitweb /
extras/keymap: Add HP Presario 2100
[elogind.git] / extras / keymap / Makefile.am
1 include $(top_srcdir)/Makefile.am.inc
2
3 dist_udevrules_DATA = 95-keymap.rules
4
5 udevkeymapdir = $(libexecdir)/keymaps
6 udevkeymap_DATA = \
7 keymaps/acer \
8         keymaps/acer-aspire_5920g \
9         keymaps/acer-travelmate_c300 \
10         keymaps/asus \
11         keymaps/compaq-e_evo \
12         keymaps/dell \
13         keymaps/everex-xt5000 \
14         keymaps/fujitsu-amilo_pa_2548 \
15         keymaps/fujitsu-amilo_pro_edition_v3505 \
16         keymaps/fujitsu-amilo_pro_v3205 \
17         keymaps/fujitsu-amilo_si_1520 \
18         keymaps/fujitsu-esprimo_mobile_v5 \
19         keymaps/fujitsu-esprimo_mobile_v6 \
20         keymaps/hewlett-packard \
21         keymaps/hewlett-packard-2510p_2530p \
22         keymaps/hewlett-packard-compaq_elitebook \
23         keymaps/hewlett-packard-pavilion \
24         keymaps/hewlett-packard-presario-2100 \
25         keymaps/hewlett-packard-tablet \
26         keymaps/hewlett-packard-tx2 \
27         keymaps/inventec-symphony_6.0_7.0 \
28         keymaps/lenovo-3000 \
29         keymaps/lenovo-thinkpad_x6_tablet \
30         keymaps/lenovo-thinkpad_x200_tablet \
31         keymaps/maxdata-pro_7000 \
32         keymaps/medion-fid2060 \
33         keymaps/medionnb-a555 \
34         keymaps/micro-star \
35         keymaps/module-asus-w3j \
36         keymaps/module-ibm \
37         keymaps/module-lenovo \
38         keymaps/module-sony \
39         keymaps/module-sony-old \
40         keymaps/oqo-model2 \
41         keymaps/samsung-other \
42         keymaps/samsung-sq1us \
43         keymaps/samsung-sx20s \
44         keymaps/toshiba-satellite_a100 \
45         keymaps/toshiba-satellite_a110 \
46         keymaps/zepto-znote
47
48 dist_libexec_SCRIPTS = findkeyboards
49
50 libexec_PROGRAMS = keymap
51
52 keymap_SOURCES = keymap.c
53 nodist_keymap_SOURCES = keys-from-name.h keys-to-name.h
54 keymap_CPPFLAGS = $(AM_CPPFLAGS)
55
56 dist_doc_DATA = README.keymap.txt
57
58 EXTRA_DIST = \
59         keymaps \
60         check-keymaps.sh
61
62 BUILT_SOURCES = \
63         keys-from-name.h \
64         keys-to-name.h
65
66 CLEANFILES = \
67         keys.txt keys-from-name.gperf \
68         keys-from-name.h keys-to-name.h
69
70 TESTS = check-keymaps.sh
71
72 keys.txt: /usr/include/linux/input.h
73         $(AWK) '/^#define.*KEY_/ { if ($$2 != "KEY_MAX" && $$2 != "KEY_CNT") { print $$2 } }' < $< > $@
74
75 keys-from-name.gperf: keys.txt
76         $(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
77
78 keys-from-name.h: keys-from-name.gperf Makefile
79         $(GPERF) -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
80
81 keys-to-name.h: keys.txt Makefile
82         $(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@