Reputation: 311
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
Reputation: 61459
Cat Feline:
$(CC) -o a.out
You can list multiple targets as well as multiple dependencies.
Upvotes: 24