多个目标名称具有相同的结果?

cla*_*ort 3 makefile

大家好.我想知道,如果我想让两个目标在我的makefile中做同样的事情而不重复,我该怎么做呢?

例如:

Cat:
    $(CC) -o a.out

Feline:
    $(CC) -o a.out
Run Code Online (Sandbox Code Playgroud)

谢谢!

gee*_*aur 10

Cat Feline:
        $(CC) -o a.out
Run Code Online (Sandbox Code Playgroud)

您可以列出多个目标以及多个依赖项.