Small 'Makefile' target fix.

This commit is contained in:
Bas Weelinck 2012-12-05 10:30:44 +01:00
parent d62c52372c
commit bab8bb9ef2

View File

@ -6,10 +6,10 @@ CFLAGS+=-D_BSD_SOURCE
default: map
keys:
def_keys.h:
echo '#include <linux/input.h>' | gcc -E -dM - | grep '#define KEY_' | cut -f2 -d" " | sed 's/KEY_.*/DEF_KEY(&)/' > def_keys.h
map: map.c keys
map: map.c def_keys.h
$(CC) map.c $(CFLAGS) -o map
clean: