-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically include build.mk after rules.mk.
In some cases, you might want to have rules which are conditional on settings, but to allow later files to override the settings. For instance: FOO_ENABLE = no ifeq $($(strip $(FOO_ENABLE)),yes) SRC += foo.c endif if you override FOO_ENABLE elsewhere, nothing happens. So we split this into a rules.mk containing the setting, and a build.mk containing the build rules, then include every build.mk file *after* all the rules.mk files have been included. I made this change to ergodox_ez as an example. A call to include with no filename in an eval works harmlessly, so we don't have to do existence checks. Signed-off-by: seebs <[email protected]>
- Loading branch information
Showing
5 changed files
with
31 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ifeq ($(strip $(RGB_MATRIX_ENABLE)), no) | ||
SRC += i2c_master.c | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters