You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
416 B

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -10,7 +10,7 @@ THCMD_COMPS := th-cmd cmdsocket
  4. MAKEDEPEND = $(CC) -M -MG $(CPPFLAGS) -o $*.d $<
  5. -LINUX_INPUT_H := $(shell echo '\#include <linux/input.h>' | $(CC) $(CPPFLAGS) -M -E - | awk 'NR==1 {print $$2}')
  6. +LINUX_INPUT_H := $(shell for i in `echo | $(CC) $(CPPFLAGS) -M -E -include 'linux/input.h' -`; do test -f "$$i" && echo "$$i" && break; done)
  7. all: thd th-cmd man