Hi, community

Recipe in both Makefiles starts with spaces.
Is not the argument to echo command a quoted text string?
Why example 1 does not report `missing separator` too?




example 1:


$ cat Makefile
test:
    @echo "recipe starts with space and has : colon, isn't this a 
quoted text string "
$
$ make test
make: Nothing to be done for 'test'.
$ 


example 2:


$ cat Makefile
test:
    @echo "recipe starts with space and has no colon, isn't this a 
quoted text string "
$
$ make test
Makefile:2: *** missing separator.  Stop.
$ 




$ cat /etc/os-release | grep PRETTY_NAME
PRETTY_NAME="Ubuntu 25.10"
$ 
$ make --version
GNU Make 4.4.1
Built for x86_64-pc-linux-gnu
$ 

Reply via email to