FM: Fix makefile logic

Change-Id: If9ebed7d36a3655f3ef3e7a0ad8a3d23149789f8