clamport
clamport

Reputation: 311

Multiple target names with same result?

Hey all. I was wondering, if I want to have two targets do the same thing in my makefile without duplicating, how would I go about this?

For example:

Cat:
    $(CC) -o a.out

Feline:
    $(CC) -o a.out

Thanks!

Upvotes: 6

Views: 4085

Answers (1)

geekosaur
geekosaur

Reputation: 61459

Cat Feline:
        $(CC) -o a.out

You can list multiple targets as well as multiple dependencies.

Upvotes: 24

Related Questions