Skip to content

Assignment statement should not allow a whitespace in variable's name #235

Open

Description

@asmundak
$ cat s.mk
X Y :=a
$ make -f s.mk 
s.mk:1: *** empty variable name.  Stop.
$ ckati -f s.mk 
*** No targets.

(and $(.VARIABLES) value contains X Y in Kati case.

Activity

  1. danw commented on Aug 24, 2021

    @danw
    Collaborator

    This is an artifact of Kati largely targeting Make ~3.81 instead of 4+ (as Android makefiles have never run with Make 4+). On Make 3.81 (in a 14.04 docker image):

    # cat s.mk
    X Y :=a
    $(info X = $(X))
    $(info Y = $(Y))
    $(info X Y = $(X Y))
    # make -f s.mk
    X =
    Y =
    X Y = a
    make: *** No targets.  Stop.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions