3 ms·
You _could_ do something like this: make -f- << sed 's/MAKE_TARGET/\$@/' Makefile.descriptive But for the sake of compatibility I wouldn't.
by xaedes 9y ago
You _could_ do something like this:
make -f- << sed 's/MAKE_TARGET/\$@/' Makefile.descriptive
But for the sake of compatibility I wouldn't.
- JetSpiegel 9y agoNo need for ugly sed error-prone trickery. Use on the Makefile: MAKE_TARGET := /some/path And invoke $ make MAKE_TARGET=/other/path
- lolikoisuru 9y agoHis point was that all of $@, $%, $? have more descriptive names as well, you don't need to use these single character macros. Also you probably meant ?= instead of := as the command you gave would still use /some/path instead of /other/path if you use :=.