diff options
Diffstat (limited to 'src/keymap/Makefile.am')
-rw-r--r-- | src/keymap/Makefile.am | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/keymap/Makefile.am b/src/keymap/Makefile.am index 80f87f7344..942009edba 100644 --- a/src/keymap/Makefile.am +++ b/src/keymap/Makefile.am @@ -4,6 +4,11 @@ rootprefix=@rootprefix@ udevlibexecdir=$(rootprefix)/lib/udev udevhomedir = $(udevlibexecdir) +AM_CPPFLAGS = \ + -I $(top_srcdir)/src/libudev \ + -I $(top_srcdir)/src/udev \ + -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" + udevlibexec_PROGRAMS = \ keymap @@ -11,7 +16,10 @@ keymap_SOURCES = \ keymap.c keymap_CPPFLAGS = \ - $(AM_CPPFLAGS) -I keymap + $(AM_CPPFLAGS) + +keymap_LDADD = \ + $(top_builddir)/src/udev/libudev-core.la nodist_keymap_SOURCES = \ keys-from-name.h \ @@ -35,6 +43,10 @@ CLEANFILES = \ keys-from-name.gperf \ keyboard-force-release.sh +EXTRA_DIST = \ + check-keymaps.sh \ + keyboard-force-release.sh.in + keys.txt: Makefile $(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-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@ @@ -47,7 +59,3 @@ keys-from-name.h: keys-from-name.gperf Makefile keys-to-name.h: keys.txt Makefile $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@ - -EXTRA_DIST = \ - check-keymaps.sh \ - keyboard-force-release.sh.in |