Skip to content
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

Merged
merged 11 commits into from
Mar 20, 2020
Merged

Makefile refactoring; NFC #186

merged 11 commits into from
Mar 20, 2020

Conversation

sunfishcode
Copy link
Member

This PR contains several Makefile refactorings which were previously folded into #150, now pulled out to address #150 (comment). NFC.

@sunfishcode
Copy link
Member Author

There are several changes here, but they're split into commits which can be reviewed independently.

Copy link
Member

@sbc100 sbc100 left a 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.

Makefile Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
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
Copy link
Member

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?

Copy link
Member Author

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.

@sunfishcode sunfishcode merged commit 41af0db into master Mar 20, 2020
@sunfishcode sunfishcode deleted the tidy branch March 20, 2020 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants