-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makefiles: Remove abuses of FORCE and .PHONY #9631
Comments
I would still say, more important than not rebuilding for nothing, which "only" wastes time, we are currently not rebuilding when necessary #9589 for example which makes the build invalid if you do not do But of course both are somehow linked together. |
@cladmi Of course they are linked. One can say that building too much is the lesser evil, but we should resist the temptation to work around our "too little built" issues by being overly conservative and forcing things to be build. |
Recursive use of make only complicates matters, see Recursive Make Considered Harmful. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
This is still valid and is in pre-cleaning steps in #10850 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
Description
What
FORCE and .PHONY targets are being abused in RIOT's makefile. For example:
RIOT/Makefile.include
Line 383 in d6b2a9e
RIOT/Makefile.include
Line 404 in d6b2a9e
RIOT/Makefile.include
Line 443 in d6b2a9e
Why
This is incorrect. It triggers unnecessary rebuilds and may hide problems with the makefiles.
How to solve it.
Targets should depend on their prerequisites only. To solve this:
The text was updated successfully, but these errors were encountered: