From 950cea7adef72497d39de0c71b8ef943b093125b Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 10 May 2009 22:21:53 +0200 Subject: keymap/Makefile.am: use configure-detected gperf path We detect gperf presence and path in configure, so we should use it in keymap's Makefile. Thanks to Dan Nicholson for noticing! --- keymap/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keymap/Makefile.am b/keymap/Makefile.am index 3b8ab74..0da136a 100644 --- a/keymap/Makefile.am +++ b/keymap/Makefile.am @@ -46,7 +46,7 @@ keys-from-name.gperf: keys.txt awk 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@ keys-from-name.h: keys-from-name.gperf Makefile - gperf -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@ + $(GPERF) -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@ keys-to-name.h: keys.txt Makefile awk 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@ -- cgit