This question addresses how to get each dependency individually by number.
However, if I have 7 dependencies in a rule and I want to get the first 5, is there a canonical way to specify that I want each of the first 5?
I'm interested in this mostly for readability.
OutBin: In1.cc In2.cc In3.cc In4.cc In5.cc libA.a libB.a
gcc <MAGIC_STRING_FOR_FIRST_FIVE_DEPENDENCIES> -o OutBin