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

Non-targets emitted when using make #27

Open
raidiun opened this issue Sep 7, 2016 · 1 comment
Open

Non-targets emitted when using make #27

raidiun opened this issue Sep 7, 2016 · 1 comment

Comments

@raidiun
Copy link
Contributor

raidiun commented Sep 7, 2016

If a target is already up to date, make -prRn emits the message from make as part of the dry run option. Unfortunately, this message looks a lot like a target and so a GNU Make: make target is emitted.

In a similar vein, GNU Make: Makefile is emitted as a target. However, updating a makefile may have a use for auto dependancy options. (Though make does update dependancies of the Makefile automatically prior to executing other targets)

@raidiun
Copy link
Contributor Author

raidiun commented Sep 7, 2016

Related to #8 In that make -prRn will output file prerequisites in a format that looks like a target. Switching the flag as in 376b8e7 does not fix this.

Potential fix buried in exotic-target-names. Fix involves splitting make output on blank lines into "blocks". Blocks that don't actually contain target will have # Not a target: at the start. Other non-target blocks also start with a comment.

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

No branches or pull requests

1 participant