4 ms·
The concepts behind make are quite good, but the interface it provides is not decidedly not. It reminds me of Git in that respect. I'd think replacing the opaqu
by jayshua 9y ago
The concepts behind make are quite good, but the interface it provides is not decidedly not. It reminds me of Git in that respect. I'd think replacing the opaque symbols used everywhere with more descriptive words would be helpful. I don't suppose anyone knows if modern Make versions support alternatives to $@, $%, $?, etc. that can be read rather than memorized?
- xaedes 9y agoYou _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 :=.