3 ms·
Make :) echo "$(x) plus $(y) equals $(shell echo "$x+$y" | bc)" I'm guessing this is the reason for the :) but to be clear for anyone else: Make is onl
by Izkata 2y ago
Make :) echo "$(x) plus $(y) equals $(shell echo "$x+$y" | bc)"
I'm guessing this is the reason for the :) but to be clear for anyone else: Make is only doing half of the work, whatever comes after "shell" is being passed to another executable, then make captures its stdout and interpolates that. The other executable is "sh" by default but can be changed to whatever.