How to get the second dependency file using Automatic Variables in a Makefile?

Solution 1:

dep.o: dep.src config1.cfg config2.cfg
    @echo the second preq is $(word 2,$^), the third is $(word 3,$^)