Create a directory for generate files

pull/18/head
Jesse Vincent 9 years ago
parent 174c60d887
commit ca29544ff6

@ -23,7 +23,7 @@ void setup();
#include "key_defs.h" #include "key_defs.h"
#include "KeyboardConfig.h" #include "KeyboardConfig.h"
#include "keymaps_generated.h" #include "generated/keymaps.h"
#include "debouncing.h" #include "debouncing.h"
#include "led_control.h" #include "led_control.h"
#include <Wire.h> #include <Wire.h>

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

@ -60,8 +60,8 @@
#define KEYMAPS 3 #define KEYMAPS 3
#define NUMPAD_KEYMAP 2 #define NUMPAD_KEYMAP 2
static const Key keymaps[KEYMAPS][ROWS][COLS] = { static const Key keymaps[KEYMAPS][ROWS][COLS] = {
KEYMAP_QWERTY KEYMAP_QWERTY
KEYMAP_GENERIC_FN2 KEYMAP_GENERIC_FN2
KEYMAP_NUMPAD KEYMAP_NUMPAD
}; };
Loading…
Cancel
Save