Skip to content

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.

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