Hello,

I believe I've found a bug in make 3.81, or at least some confusing
behaviour.

Here is a comparison of GNU make and netbsd 'pmake'

A-$(X) isn't expanded to "A-1" because of the comment on the line where
X is set, although X is set to "1"

% cat Makefile 
X = 1 #comment
Y = 1
A-$(X) = a
B-$(Y) = b

all:
        @echo $(X) $(A-1)
        @echo $(Y) $(B-1)
% make
1
1 b
% make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
% pmake 
1 a
1 b
% dpkg -s pmake|grep ^Version:
Version: 1.111-2

-- 
✍ Rafaël Carré ☺

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to