bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in make?


From: Alexander Khomyak
Subject: Bug in make?
Date: Tue, 18 Feb 2020 23:00:39 +0300

Hello,

Why "Grouped targets recipe"in the following Makefile

targets = target1 target2

all : $(targets)

$(targets) &:
    @echo "Grouped targets recipe"
    @echo $@ > target1
    @echo $@ > target2

clean :
    rm -rf $(targets)

runs one time using command 'make' and two times using command 'make -j2'?

Regards,
AkexK

reply via email to

[Prev in Thread] Current Thread [Next in Thread]