No, I haven't tried that.
I either use the IDE and the "integrated" project management, or I used plain make files from the command line. The latter is not very difficult especially for smaller or mid-sized projects. There are plenty of make tutorials around on the web.
Commercial users pay 4-digit prices for licenses (like my company), so they rarely change the toolchain/IDE. In that environment, it makes sense to stick to the IDE's proprietary project management and build process.
This "makefile project" is a feature of the underlying Eclipse, and not MCUXpresso specific. I have seen tutorials for that as well, but never had the need for such a "hybrid" project.
> But when I run it, it fails.
What, exactly ?