소프트웨어 Makefile 내장함수를 사용해서 test해보기 개발자_이훈규 2016. 2. 2. 16:15 all : test1 test2 test3 test4 test5 @echo all start A = b test1 : @echo Test1 start @echo A @echo $(A) VAR = OLD A := $(VAR) # OLD (:= call by value) B = $(VAR) # OLD (= call by reference) VAR = NEW test2 : @echo Test2 start @echo $(A) @echo $(B) FILES = $(wildcard *.c) test3 : @echo Test3 start @echo $(FILES) PATHS = / test /usr/bin DIRS = $(dir $(PATHS)) test4 : @echo Test4 start @echo $(DIRS) #@echo $(PATH) define HELLO echo hello $(1) echo hello $(2) endef test5 : @echo Test5 start $(call HELLO, world, hahaha) # reference : http://stardust328.tistory.com/entry/Makefile-%EB%82%B4%EC%9E%A5%ED%95%A8%EC%88%98 저작자표시 비영리 (새창열림)