Programming Utilities Guide

Duplicate Targets

Targets can appear more than once in a makefile. For example,

foo:  dep_1
foo:  dep_2
foo:
     touch foo

is the same as

foo:  dep_1 dep_2
      touch foo

However, many people feel that it's preferable to have a target appear only once, for ease of reading.