Creating targets from computed variables in make
Here's an example that doesn't work
say-hello := greeting
say-bye := farewell
greeting:
@echo "Hello"
farewell:
@echo "Bye"
.SECONDEXPANSION:
%-guvnah: $$(say-$*)
@echo "Target was: $(say-$*)"
Command
make hello-guvnah
Should issue
hello
Target was: greeting
But only shows
Target was: greeting
+3
source to share