Fix platform-deps Makefile to use TARGET variable everywhere.