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

Support VAR:=value #74

Open
rasa opened this issue Aug 23, 2022 · 1 comment
Open

Support VAR:=value #74

rasa opened this issue Aug 23, 2022 · 1 comment

Comments

@rasa
Copy link

rasa commented Aug 23, 2022

Support:

VAR:=value

It currently treats VAR as a target:

Target "VAR" should be declared PHONY
@robbat2
Copy link

robbat2 commented Jun 22, 2023

This check trips on the Linux kernel's stock Makefile, saying silence should be declared PHONY.
As a workaround, adding space, so it's silence := fixes the problem, so it sounds like the parser has a bug.

ifeq ("$(origin V)", "command line")
  KBUILD_VERBOSE = $(V)
endif
ifndef KBUILD_VERBOSE
  KBUILD_VERBOSE = 0
endif
ifeq ($(KBUILD_VERBOSE),1)
  quiet =
  Q =
else
  quiet=quiet_
  Q = @
endif
ifeq ($(filter 3.%,$(MAKE_VERSION)),)
silence:=$(findstring s,$(firstword -$(MAKEFLAGS)))
else
silence:=$(findstring s,$(filter-out --%,$(MAKEFLAGS)))
endif
export quiet Q KBUILD_VERBOSE

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

2 participants