Show and execute

Viewed 39334

In this makefile

dirs = $(shell ls)
clean:
    $(foreach dir,$(dirs),echo $(dir);)

The output is

$ make clean
echo bin; echo install.sh; echo Makefile; echo README.md; echo utils;
bin
install.sh
Makefile
README.md
utils

Why does it first show the command, then execute it? How I can omit the first line?

2 Answers
Related