all: library.cpp main.cpp
In this case:
$@evaluates toall$<evaluates tolibrary.cpp$^evaluates tolibrary.cpp main.cpp
안녕하세요.
다른 사람이 만든 Makefile을 보던 중 $@ $< $^의 기호가 나와 의문을 가져 검색을 해보았습니다.
기록차 남겨둡니다.
all: library.cpp main.cpp
In this case:
$@ evaluates to all$< evaluates to library.cpp$^ evaluates to library.cpp main.cpp출처 : https://stackoverflow.com/questions/3220277/what-do-the-makefile-symbols-and-mean