From f0058b966ecf90070168c5b74a73ca2b2ff3e65a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 27 Jul 2022 02:28:07 +0200 Subject: Fix button and axis names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 910c1c2..b177653 100644 --- a/Makefile +++ b/Makefile @@ -88,13 +88,13 @@ libgamepad_absolute_axis_names__.o: absolute-axis.names libgamepad_relative_axis_names__.o: relative-axis.names button.names: names.sh - printf '%s\n' '#include ' | $(CPP) -dM | ./names.sh BTN KEY > $@ + ./names.sh '0x%03X' BTN KEY < $(INPUT_EVENT_CODES_H) > $@ absolute-axis.names: names.sh - printf '%s\n' '#include ' | $(CPP) -dM | ./names.sh ABS > $@ + ./names.sh '0x%02X' ABS < $(INPUT_EVENT_CODES_H) > $@ relative-axis.names: names.sh - printf '%s\n' '#include ' | $(CPP) -dM | ./names.sh REL > $@ + ./names.sh '0x%02X' REL < $(INPUT_EVENT_CODES_H) > $@ .names.count: wc -l < $< > $@ -- cgit v1.2.3-70-g09d2