【发布时间】:2022-06-22 18:46:01
【问题描述】:
假设我定义了几个 make PHONY 命令:
auto-build-foo
auto-build-bar
auto-build-biz
...
auto-build-inf
我可以通过bash 中配置autocompletion 的以下击键来观察它们:
$: make auto-build-<tab><tab>
auto-build-foo
auto-build-bar
auto-build-biz
...
auto-build-inf
那么我天生的unix本能就是这样写:
make auto-build-*
构建它们。
我知道这种事情需要在make 中作为一个特性来实现,makefile 作为某种规则系统,或者一些将bash-completion 历史与一些make 集成的自定义shell - 专门解释.
但是获得这个“开箱即用”会很酷而且很有用。
在 GNU make 中是否存在或将存在这样的机制?
【问题讨论】: