Issue
> ls
abcd.config efgh.config ijkl.config
Makefile:
%_defconfig: %.config
@echo "Some commands i want to run on %.config"
What i want is autosuggestion (tab completion) for
abcd_defconfig
efgh_defconfig
ijkl_defconfig
Solution
Explicitly declare the targets for which you want auto completion? For instance with the wildcard
and patsubst
functions and a static pattern rule instead of a pattern rule:
configs := $(wildcard *.config)
defconfigs := $(patsubst %.config,%_defconfig,$(configs))
$(defconfigs): %_defconfig: %.config
@echo "Some commands i want to run on $<"
Answered By - Renaud Pacalet