In the following Makefile $F doesn't get expanded and it's just empty. I am wondering what is an elegant solution to use @F instead of writing dependencies explicitly?
nested-cycles.scala first.scala follow.scala : ../$(basename $(@F)).aps ${APS2SCALA}
${APS2SCALA} ${APS2SCALAFLAGS} -S $(basename $(@F))