A
A
Anatoliy_Shevchuk2018-10-23 19:44:48
GNU Make
Anatoliy_Shevchuk, 2018-10-23 19:44:48

How to add variable values ​​in Make?

How to add variable values ​​in Make.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2018-10-23
@Anatoliy_Shevchuk

for example via shell:

SHELL := bash
A = 2
B = 3
C = $(shell echo $$(( $(A) + $(B) )) )

all:
        echo $(C)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question