Is it possible in GNU / Make to set one rule for different purposes?
For example, I have two goals (1 executable file): targ0.axf
and targ1.axf
. Both depend on the same object files, both are built the same way:
targ0.axf: file0.o file1.o $(LD) $^ -o $@ $(LFLAGS) targ1.axf: file0.o file1.o $(LD) $^ -o $@ $(LFLAGS)
Is it possible to write something shorter?