Makefile 가변 타겟


개요

variable target in a makefile
Makefile 가변 타겟
Makefile 변수 타겟
names = alice bob carol

all: $(names)

$(names):
        echo hello $@
root@wsl:~# make alice
echo hello alice
hello alice
root@wsl:~# make all
echo hello alice
hello alice
echo hello bob
hello bob
echo hello carol
hello carol

같이 보기

참고