blocksds / sdk

Main BlocksDS SDK repository
https://blocksds.github.io/docs/
130 stars 5 forks source link

templates: use build/$(NAME) for build directory #127

Closed lifehackerhansol closed 4 months ago

lifehackerhansol commented 4 months ago

This allows flexibility in the event a user needs to build multiple binaries from the same source code. For example, if one needs builds with a specific DEFINE, and another without such a DEFINE, just a NAME change will make sure these do not conflict, while also making it relatively easy for a user to see which build directory is related to which Makefile.

Test: compile

You can find an example at https://github.com/lifehackerhansol/flashcard-bootstrap, where this logic is applied for the ARM9 binaries.

lifehackerhansol commented 4 months ago

Force-pushed to fix typo in commit message.

AntonioND commented 4 months ago

I think this change is okay, can you apply it to the makefiles in the sys/default_makefiles folder too?

lifehackerhansol commented 4 months ago

I think this change is okay, can you apply it to the makefiles in the sys/default_makefiles folder too?

Applied.

AntonioND commented 4 months ago

Thanks!