Skip to content

Conversation

@ids1024
Copy link
Contributor

@ids1024 ids1024 commented Jun 10, 2017

This needs to be run to check for updates in the cookbook.

A more ideal solution would only rebuild these files if the cookbook updated a package; I don't know how best to implement that though.

This needs to be run to check for updates in the cookbook.
@jackpot51
Copy link
Member

I would prefer a rebuild target that removes those two files, and then runs make

@ids1024
Copy link
Contributor Author

ids1024 commented Jun 10, 2017

I don't know; it seems rather unintuitive if make ignores changes to userspace code.

@jackpot51
Copy link
Member

You could add FORCE to the prerequisites of build/initfs.tag and build/filesystem.bin

Phony is for targets that are not files

@ids1024
Copy link
Contributor Author

ids1024 commented Jun 10, 2017

I know that's the primary use of .PHONY, but it seems appropriate here.

I haven't heard of FORCE, but the GNU make manual says this about it (https://www.gnu.org/software/make/manual/html_node/Force-Targets.html):

Using ‘.PHONY’ is more explicit and more efficient. However, other versions of make do not support ‘.PHONY’; thus ‘FORCE’ appears in many makefiles.

@jackpot51 jackpot51 closed this Apr 1, 2019
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