顯示具有 [Linux]Makefile Function 標籤的文章。 顯示所有文章
顯示具有 [Linux]Makefile Function 標籤的文章。 顯示所有文章

2022年5月27日 星期五

[Linux] Makefile Function

define funcName
@echo "pram1 = $(0)"
@echo "pram2 = $(1)"
@echo "pram3 = $(2)"
endef

all:
$(call funcName,hello 1,hello 2)