diff options
author | Michal Suchanek <msuchanek@suse.de> | 2017-06-27 11:48:45 +0200 |
---|---|---|
committer | Michal Suchanek <msuchanek@suse.de> | 2017-06-27 13:27:37 +0200 |
commit | 1b833237198ae8bcba38c4824dc849b402eab163 (patch) | |
tree | 63254899f258e483426d96d9d053d8df8948b1b6 /Makefile.am | |
parent | 259d1af8d6fbb4918a3d43597dbca8cafe06a979 (diff) | |
download | systemd-1b833237198ae8bcba38c4824dc849b402eab163.tar.gz |
Use same script to build key list in Makefile and meson
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index c61f371a8e..86343eec39 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3925,10 +3925,10 @@ noinst_LTLIBRARIES += \ src/udev/keyboard-keys-list.txt: $(AM_V_at)$(MKDIR_P) $(dir $@) - $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9K]/ { if ($$2 != "KEY_MAX") { print $$2 } }' > $@ + $(AM_V_GEN)$(top_srcdir)/src/udev/generate-keyboard-keys-list.sh "$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS)" > $@ src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt - $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key_name { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@ + $(AM_V_GEN)$(top_srcdir)/src/udev/generate-keyboard-keys-gperf.sh $< > $@ src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@ |