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

Set src files as Makefile prerequisites #247

Closed
wants to merge 3 commits into from

Conversation

FnControlOption
Copy link
Contributor

This will cause make build to compile a new binary whenever a src file is edited. This way, one does not need to run make clean before running make again.

Makefile Outdated Show resolved Hide resolved
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
Comment on lines -7 to +8
bin/ameba:
bin/ameba: $(SRC_FILES)
Copy link
Member

@veelenga veelenga Oct 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please confirm this does not break the postinstall scripts?

postinstall: make bin && make run_file

@FnControlOption
Copy link
Contributor Author

Seems to work fine, but I added phony targets just in case.

@FnControlOption
Copy link
Contributor Author

Oh, BSD make doesn't support $(shell ). Should I close this then?

@veelenga
Copy link
Member

Good point. Yes, we try not to break the freebsd compatibility.

@FnControlOption FnControlOption deleted the patch-1 branch November 16, 2021 23:08
@Sija Sija added this to the 0.15.0 milestone Jan 10, 2022
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.

3 participants