diff options
| author | Osamu Aoki <osamu@debian.org> | 2017-02-02 23:15:08 +0900 |
|---|---|---|
| committer | Osamu Aoki <osamu@debian.org> | 2017-02-02 23:15:08 +0900 |
| commit | f787f4291a6e3a363343f80c1c81b13b065ae974 (patch) | |
| tree | b312873c8e5a0142a1574d0b5d1829dc7884c77f /Makefile | |
| parent | 45e5b3278126ef1e99f2b1323246789f6d8ad55e (diff) | |
| download | qmk_firmware-f787f4291a6e3a363343f80c1c81b13b065ae974.tar.gz qmk_firmware-f787f4291a6e3a363343f80c1c81b13b065ae974.zip | |
Typo fixes
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 36 |
1 files changed, 18 insertions, 18 deletions
| @@ -16,10 +16,10 @@ ifdef SILENT | |||
| 16 | endif | 16 | endif |
| 17 | 17 | ||
| 18 | # We need to make sure that silent is always turned off at the top level | 18 | # We need to make sure that silent is always turned off at the top level |
| 19 | # Otherwise the [OK], [ERROR] and [WARN] messags won't be displayed correctly | 19 | # Otherwise the [OK], [ERROR] and [WARN] messages won't be displayed correctly |
| 20 | override SILENT := false | 20 | override SILENT := false |
| 21 | 21 | ||
| 22 | ON_ERROR := error_occured=1 | 22 | ON_ERROR := error_occurred=1 |
| 23 | 23 | ||
| 24 | STARTING_MAKEFILE := $(firstword $(MAKEFILE_LIST)) | 24 | STARTING_MAKEFILE := $(firstword $(MAKEFILE_LIST)) |
| 25 | ROOT_MAKEFILE := $(lastword $(MAKEFILE_LIST)) | 25 | ROOT_MAKEFILE := $(lastword $(MAKEFILE_LIST)) |
| @@ -34,13 +34,13 @@ ABS_ROOT_DIR := $(dir $(ABS_ROOT_MAKEFILE)) | |||
| 34 | STARTING_DIR := $(subst $(ABS_ROOT_DIR),,$(ABS_STARTING_DIR)) | 34 | STARTING_DIR := $(subst $(ABS_ROOT_DIR),,$(ABS_STARTING_DIR)) |
| 35 | BUILD_DIR := $(ROOT_DIR)/.build | 35 | BUILD_DIR := $(ROOT_DIR)/.build |
| 36 | TEST_DIR := $(BUILD_DIR)/test | 36 | TEST_DIR := $(BUILD_DIR)/test |
| 37 | ERROR_FILE := $(BUILD_DIR)/error_occured | 37 | ERROR_FILE := $(BUILD_DIR)/error_occurred |
| 38 | 38 | ||
| 39 | MAKEFILE_INCLUDED=yes | 39 | MAKEFILE_INCLUDED=yes |
| 40 | 40 | ||
| 41 | # Helper function to process the newt element of a space separated path | 41 | # Helper function to process the newt element of a space separated path |
| 42 | # It works a bit like the traditional functional head tail | 42 | # It works a bit like the traditional functional head tail |
| 43 | # so the CURRENT_PATH_ELEMENT will beome the new head | 43 | # so the CURRENT_PATH_ELEMENT will become the new head |
| 44 | # and the PATH_ELEMENTS are the rest that are still unprocessed | 44 | # and the PATH_ELEMENTS are the rest that are still unprocessed |
| 45 | define NEXT_PATH_ELEMENT | 45 | define NEXT_PATH_ELEMENT |
| 46 | $$(eval CURRENT_PATH_ELEMENT := $$(firstword $$(PATH_ELEMENTS))) | 46 | $$(eval CURRENT_PATH_ELEMENT := $$(firstword $$(PATH_ELEMENTS))) |
| @@ -84,7 +84,7 @@ endif | |||
| 84 | # Only consider folders with makefiles, to prevent errors in case there are extra folders | 84 | # Only consider folders with makefiles, to prevent errors in case there are extra folders |
| 85 | KEYBOARDS := $(notdir $(patsubst %/Makefile,%,$(wildcard $(ROOT_DIR)/keyboards/*/Makefile))) | 85 | KEYBOARDS := $(notdir $(patsubst %/Makefile,%,$(wildcard $(ROOT_DIR)/keyboards/*/Makefile))) |
| 86 | 86 | ||
| 87 | #Compability with the old make variables, anything you specify directly on the command line | 87 | #Compatibility with the old make variables, anything you specify directly on the command line |
| 88 | # always overrides the detected folders | 88 | # always overrides the detected folders |
| 89 | ifdef keyboard | 89 | ifdef keyboard |
| 90 | KEYBOARD := $(keyboard) | 90 | KEYBOARD := $(keyboard) |
| @@ -106,7 +106,7 @@ endif | |||
| 106 | #$(info Keyboards: $(KEYBOARDS)) | 106 | #$(info Keyboards: $(KEYBOARDS)) |
| 107 | 107 | ||
| 108 | 108 | ||
| 109 | # Set the default goal depening on where we are running make from | 109 | # Set the default goal depending on where we are running make from |
| 110 | # this handles the case where you run make without any arguments | 110 | # this handles the case where you run make without any arguments |
| 111 | .DEFAULT_GOAL := all | 111 | .DEFAULT_GOAL := all |
| 112 | ifneq ($(KEYMAP),) | 112 | ifneq ($(KEYMAP),) |
| @@ -170,7 +170,7 @@ define TRY_TO_MATCH_RULE_FROM_LIST_HELPER3 | |||
| 170 | endef | 170 | endef |
| 171 | 171 | ||
| 172 | # A recursive helper function for finding the longest match | 172 | # A recursive helper function for finding the longest match |
| 173 | # $1 The list to be checed | 173 | # $1 The list to be checked |
| 174 | # It works by always removing the currently matched item from the list | 174 | # It works by always removing the currently matched item from the list |
| 175 | # and call itself recursively, until a match is found | 175 | # and call itself recursively, until a match is found |
| 176 | define TRY_TO_MATCH_RULE_FROM_LIST_HELPER2 | 176 | define TRY_TO_MATCH_RULE_FROM_LIST_HELPER2 |
| @@ -180,7 +180,7 @@ define TRY_TO_MATCH_RULE_FROM_LIST_HELPER2 | |||
| 180 | $$(eval $$(call TRY_TO_MATCH_RULE_FROM_LIST_HELPER3,$1)) | 180 | $$(eval $$(call TRY_TO_MATCH_RULE_FROM_LIST_HELPER3,$1)) |
| 181 | # If a match is found in the current list, otherwise just return what we had before | 181 | # If a match is found in the current list, otherwise just return what we had before |
| 182 | ifeq ($$(RULE_FOUND),true) | 182 | ifeq ($$(RULE_FOUND),true) |
| 183 | # Save the best match so far and call itself recursivel | 183 | # Save the best match so far and call itself recursively |
| 184 | BEST_MATCH := $$(MATCHED_ITEM) | 184 | BEST_MATCH := $$(MATCHED_ITEM) |
| 185 | BEST_MATCH_RULE := $$(RULE) | 185 | BEST_MATCH_RULE := $$(RULE) |
| 186 | RULE_FOUND := false | 186 | RULE_FOUND := false |
| @@ -337,7 +337,7 @@ define PARSE_SUBPROJECT | |||
| 337 | $$(eval $$(call PARSE_ALL_KEYMAPS)) | 337 | $$(eval $$(call PARSE_ALL_KEYMAPS)) |
| 338 | endif | 338 | endif |
| 339 | else | 339 | else |
| 340 | # As earlier mentione,d when allsb is specified, we call our self recursively | 340 | # As earlier mentioned when allsb is specified, we call our self recursively |
| 341 | # for all of the subprojects | 341 | # for all of the subprojects |
| 342 | $$(eval $$(call PARSE_ALL_IN_LIST,PARSE_SUBPROJECT,$(SUBPROJECTS))) | 342 | $$(eval $$(call PARSE_ALL_IN_LIST,PARSE_SUBPROJECT,$(SUBPROJECTS))) |
| 343 | endif | 343 | endif |
| @@ -403,11 +403,11 @@ define BUILD | |||
| 403 | printf "$$(MAKE_MSG)\n\n"; \ | 403 | printf "$$(MAKE_MSG)\n\n"; \ |
| 404 | $$(MAKE_CMD) $$(MAKE_VARS) SILENT=false; \ | 404 | $$(MAKE_CMD) $$(MAKE_VARS) SILENT=false; \ |
| 405 | if [ $$$$? -gt 0 ]; \ | 405 | if [ $$$$? -gt 0 ]; \ |
| 406 | then error_occured=1; \ | 406 | then error_occurred=1; \ |
| 407 | fi; | 407 | fi; |
| 408 | endef | 408 | endef |
| 409 | 409 | ||
| 410 | # Just parse all the keymaps for a specifc keyboard | 410 | # Just parse all the keymaps for a specific keyboard |
| 411 | define PARSE_ALL_KEYMAPS | 411 | define PARSE_ALL_KEYMAPS |
| 412 | $$(eval $$(call PARSE_ALL_IN_LIST,PARSE_KEYMAP,$$(KEYMAPS))) | 412 | $$(eval $$(call PARSE_ALL_IN_LIST,PARSE_KEYMAP,$$(KEYMAPS))) |
| 413 | endef | 413 | endef |
| @@ -428,7 +428,7 @@ define BUILD_TEST | |||
| 428 | printf "$$(TEST_MSG)\n"; \ | 428 | printf "$$(TEST_MSG)\n"; \ |
| 429 | $$(TEST_EXECUTABLE); \ | 429 | $$(TEST_EXECUTABLE); \ |
| 430 | if [ $$$$? -gt 0 ]; \ | 430 | if [ $$$$? -gt 0 ]; \ |
| 431 | then error_occured=1; \ | 431 | then error_occurred=1; \ |
| 432 | fi; \ | 432 | fi; \ |
| 433 | printf "\n"; | 433 | printf "\n"; |
| 434 | endif | 434 | endif |
| @@ -448,7 +448,7 @@ endef | |||
| 448 | 448 | ||
| 449 | 449 | ||
| 450 | # Set the silent mode depending on if we are trying to compile multiple keyboards or not | 450 | # Set the silent mode depending on if we are trying to compile multiple keyboards or not |
| 451 | # By default it's on in that case, but it can be overriden by specifying silent=false | 451 | # By default it's on in that case, but it can be overridden by specifying silent=false |
| 452 | # from the command line | 452 | # from the command line |
| 453 | define SET_SILENT_MODE | 453 | define SET_SILENT_MODE |
| 454 | ifdef SUB_IS_SILENT | 454 | ifdef SUB_IS_SILENT |
| @@ -465,16 +465,16 @@ include $(ROOT_DIR)/message.mk | |||
| 465 | # The empty line is important here, as it will force a new shell to be created for each command | 465 | # The empty line is important here, as it will force a new shell to be created for each command |
| 466 | # Otherwise the command line will become too long with a lot of keyboards and keymaps | 466 | # Otherwise the command line will become too long with a lot of keyboards and keymaps |
| 467 | define RUN_COMMAND | 467 | define RUN_COMMAND |
| 468 | +error_occured=0;\ | 468 | +error_occurred=0;\ |
| 469 | $(COMMAND_$(SILENT_MODE)_$(COMMAND))\ | 469 | $(COMMAND_$(SILENT_MODE)_$(COMMAND))\ |
| 470 | if [ $$error_occured -gt 0 ]; then echo $$error_occured > $(ERROR_FILE); fi; | 470 | if [ $$error_occurred -gt 0 ]; then echo $$error_occurred > $(ERROR_FILE); fi; |
| 471 | 471 | ||
| 472 | 472 | ||
| 473 | endef | 473 | endef |
| 474 | define RUN_TEST | 474 | define RUN_TEST |
| 475 | +error_occured=0;\ | 475 | +error_occurred=0;\ |
| 476 | $($(TEST)_COMMAND)\ | 476 | $($(TEST)_COMMAND)\ |
| 477 | if [ $$error_occured -gt 0 ]; then echo $$error_occured > $(ERROR_FILE); fi; | 477 | if [ $$error_occurred -gt 0 ]; then echo $$error_occurred > $(ERROR_FILE); fi; |
| 478 | 478 | ||
| 479 | endef | 479 | endef |
| 480 | 480 | ||
| @@ -514,7 +514,7 @@ endif | |||
| 514 | .PHONY: all | 514 | .PHONY: all |
| 515 | all: all-keyboards test-all | 515 | all: all-keyboards test-all |
| 516 | 516 | ||
| 517 | # Define some shortcuts, mostly for compability with the old syntax | 517 | # Define some shortcuts, mostly for compatibility with the old syntax |
| 518 | .PHONY: all-keyboards | 518 | .PHONY: all-keyboards |
| 519 | all-keyboards: allkb-allsp-allkm | 519 | all-keyboards: allkb-allsp-allkm |
| 520 | 520 | ||
