Skip to content
Commit a9a759a8 authored by Jonathan Poelen's avatar Jonathan Poelen Committed by Christoph Cullmann
Browse files

Makefile: fix variable declaration, comment and semicolon in value and...

Makefile: fix variable declaration, comment and semicolon in value and rule/command semicolon separator

- Add override keyword
- Add :::= and != assignment operators
- Fix variable name
A variable name may be any sequence of characters not containing ‘:’, ‘#’, ‘=’, or whitespace.
```
???=value
^^ variable
  ^^ operator
```
- Fix comment in value
```mk
var=value#comment
var=value\#nocomment
```
- Fix semicolon in value (not a special character)
- Add one-line rule
```mk
target: file1 ; cmd ...
target: file1
	cmd ...
```
- Fix quote in some contexts
```mk
$(info "'")
```

BUG: 466015
parent 1d5e0665
Pipeline #346570 passed with stage
in 2 minutes and 17 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment