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

12 lines
119 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07: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