aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2635da2..c2a94a6 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,9 @@ $(NAME): $(NAME).c $(BOARD_FILES) board/boards.h
board/boards.h:
printf "#ifndef BOARD_DEFAULTS_H\n#define BOARD_DEFAULTS_H\n\n" > board/boards.h
for board in $(BOARDS); do echo "#include \"$$board/board.h\"" >> board/boards.h; done
- printf "\n#endif /* BOARD_DEFAULTS_H */" >> board/boards.h
+ printf "\n#define BOARDS " >> board/boards.h
+ for board in $(BOARDS); do printf "BOARD(\"$$board\", board_$${board}_board_down_wav) " >> board/boards.h; done
+ printf "\n\n#endif /* BOARD_DEFAULTS_H */" >> board/boards.h
$(BOARD_FILES): %.h: %_down.wav
xxd -i "$<" "$@"