linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] extras/keymap: fix build (GEN keys.txt)
@ 2009-10-29 14:27 Alan Jenkins
  2009-10-29 15:03 ` Lennart Poettering
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Alan Jenkins @ 2009-10-29 14:27 UTC (permalink / raw)
  To: linux-hotplug

Commit 7d701b0 "Merge keymap building in the top-level Makefile.am"
caused a build failure when extras are enabled.

Specifically, it changed the command used to generate keys.txt in several
ways.  The most obvious change was that the output was completely empty :).
This was probably missed due to stale Makefiles.  Hint: to reproduce the
build failure, first run "make distclean".

Fix the generation of keys.txt by reverting to the original command.

Also add some dependencies on the Makefile.  This means keys.txt will be
rebuilt automatically if the command is changed in future.

Build tested only.  I don't use udev-keymap, so it would a good idea for
someone who does to test it (Diego?) :).

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
CC: Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
---
 Makefile.am |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index cf7d364..a439157 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -530,10 +530,10 @@ dist_udevkeymap_DATA = \
 	extras/keymap/keymaps/toshiba-satellite_a110 \
 	extras/keymap/keymaps/zepto-znote
 
-extras/keymap/keys.txt: /usr/include/linux/input.h
-	$(AM_V_GEN)$(AWK) '/^#define.*KEY_[^ ]+[[:space:]]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' < $< | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
+extras/keymap/keys.txt: /usr/include/linux/input.h Makefile
+	$(AM_V_GEN)$(AWK) '/^#define.*KEY_/ { if ($$2 != "KEY_MAX" && $$2 != "KEY_CNT") { print $$2 } }' < $< > $@
 
-extras/keymap/keys-from-name.gperf: extras/keymap/keys.txt
+extras/keymap/keys-from-name.gperf: extras/keymap/keys.txt Makefile
 	$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
 
 extras/keymap/keys-from-name.h: extras/keymap/keys-from-name.gperf Makefile
-- 
1.5.6.5




^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-10-30  8:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-29 14:27 [PATCH] extras/keymap: fix build (GEN keys.txt) Alan Jenkins
2009-10-29 15:03 ` Lennart Poettering
2009-10-29 16:01 ` Alan Jenkins
2009-10-29 19:06 ` Martin Pitt
2009-10-29 20:10 ` Alan Jenkins
2009-10-29 20:17 ` 
2009-10-29 20:40 ` Dan Nicholson
2009-10-29 20:46 ` 
2009-10-29 20:56 ` Alan Jenkins
2009-10-30  8:40 ` Martin Pitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).