Two ATmega328p with 2 RF modules and two separeate code.c compiling problem

Hi,

I’m new to PlatformIO/C programming, and trying to create an RF communication between two NRF24l01 using two bare minimum ATmega328p boards.

My idea is to have a TX.c and RX.c for each separate microcontroller, but when I’m trying to build it using “Platform: Upload” I have to constantly change the file names between TX.c ↔ TX.txt and RX.c ↔ RX.txt for it to compile the wanted file.

How can I make it compile the file that I want using platformIO?

Duplicate of Can a single platformio.ini have more than one "entry point".