上例子
SUBDIRS=foo bar baz subdir: for dir in $(SUBDIRS); do \ @echo $$dir; \ done
执行结果:
for dir in foo bar baz ; do
@echo $dir;
done
foo
bar
baz
上例子
SUBDIRS=foo bar baz subdir: for dir in $(SUBDIRS); do \ @echo $$dir; \ done
执行结果:
for dir in foo bar baz ; do
@echo $dir;
done
foo
bar
baz