source/Makefile: Update the generate-keymaps target

The updated target finds files at their current place, and also sorts
the keymaps, so that the results are consistent across builds and
systems.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/18/head
Gergely Nagy 8 years ago
parent 638dcc660c
commit 6ca0a39e4e

@ -36,8 +36,8 @@ astyle:
find . -type f -name \*.h |xargs -n 1 astyle --style=google
generate-keymaps:
-rm generated/keymaps.h
cd layouts && ( find . -type f |xargs -n 1 -I % sh -c 'perl ../tools/generate_keymaps.pl < % >> ../generated/keymaps.h' )
rm -f generated/keymaps.h
cd ../layouts && ( find . -type f | sort | xargs -n 1 -I % sh -c 'perl ../tools/generate_keymaps.pl < % >> ../source/generated/keymaps.h' )
dirs:
mkdir -p $(OUTPUT_PATH)

Loading…
Cancel
Save