GNU make:如何将目录中的所有文件添加到变量中?

GNU make: how to add all files from a directory to a variable?

如何使用 GNU make 将目录中扩展名为 .x 的所有文件添加到变量列表?

这不起作用: ALL_X := all_x/*.x

有关 the wildcard function 的信息,请参阅手册:

ALL_X := $(wildcard all_x/*.x)