RosettaCodeData/Task/Function-definition/Make/function-definition-3.make

12 lines
119 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
A=1
B=1
define multiply
expr $(1) \* $(2)
endef
do:
@$(call multiply, $(A), $(B))
|gmake -f mul.mk do A=5 B=3