remove target specific files and replace them by __TARGET_...__ macros