2 ms·
Makefiles can actually be quite dynamic, so a program merely trying to figure out the list of target has to execute code. For example put this in a Makefile and
by remram 6y ago
Makefiles can actually be quite dynamic, so a program merely trying to figure out the list of target has to execute code. For example put this in a Makefile and do `make <TAB>`, the file will be created (no need to press enter):
VALUE := $(shell touch /tmp/something)
- JNRowe 6y agoFWIW, while both bash and fish completion execute "make -n" for tab completion that isn't the case for zsh. zsh uses an internal parser for makefiles¹, and as such won't execute the shell function or recipes that use the + prefix. ¹ https://github.com/zsh-users/zsh/blob/master/Completion/Unix/Command/_make https://github.com/zsh-users/zsh/blob/master/Completion/Unix...