On Tue, 2020-02-18 at 23:00 +0300, Alexander Khomyak wrote:
> Why "Grouped targets recipe"in the following Makefile
>
> targets = target1 target2
>
> all : $(targets)
>
> $(targets) &:
> @echo "Grouped targets recipe"
> @echo $@ > target1
> @echo $@ > target2
>
> clean :
> rm -r
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 '