-
Notifications
You must be signed in to change notification settings - Fork 203
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
Makefile refactoring; NFC #186
Conversation
There are several changes here, but they're split into commits which can be reviewed independently. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for splitting all that out. Much appreciated.
They theoretically protect what the Makefile considers to be implementation details from being overridden on the command-line, but in practice this isn't super important, and they add a lot of clutter.
install: finish | ||
mkdir -p "$(INSTALL_DIR)" | ||
cp -r "$(SYSROOT)/lib" "$(SYSROOT)/share" "$(SYSROOT)/include" "$(INSTALL_DIR)" | ||
|
||
.PHONY: default startup_files libc finish check install include_dirs | ||
.PHONY: default startup_files libc finish install include_dirs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you feel like there is value is having a separate check rule? I guess we always build from clean anyway, so its not like you could build and then check later with the current setup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check code is very quick -- it's just a diff of a few files -- so we can just always do the check as part of the regular build.
This PR contains several Makefile refactorings which were previously folded into #150, now pulled out to address #150 (comment). NFC.