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: check shellcheck's version only if present #12241

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

simondeziel
Copy link
Member

If shellcheck is missing, this avoids the following error:

$ make deps
/bin/sh: 1: shellcheck: not found
...

This affected every targets because each ifeq directives are evaluated, irrespective of the target called:

$ make foo
/bin/sh: 1: shellcheck: not found
make: *** No rule to make target 'foo'. Stop.

If `shellcheck` is missing, this avoids the following error:

> $ make deps
> /bin/sh: 1: shellcheck: not found
> ...

This affected every targets because each `ifeq` directives are
evaluated, irrespective of the target called:

> $ make foo
> /bin/sh: 1: shellcheck: not found
> make: *** No rule to make target 'foo'.  Stop.

Signed-off-by: Simon Deziel <[email protected]>
@simondeziel simondeziel marked this pull request as ready for review September 12, 2023 02:43
@tomponline tomponline merged commit 6839808 into canonical:main Sep 12, 2023
25 checks passed
@simondeziel simondeziel deleted the makefile-shellcheck branch September 12, 2023 12:57
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