I created a makefile that is not copying 2.c to tmp:
Code:
all: tmp/*.c
master_source/*.c:
platform_source/*.c:
tmp/*.c: master_source/*.c platform_source/*.c
@cp $< tmp/
Note that if there exists platform_source/3.c it must be copied too, when modificated.