Pipeline makefiles for contamination removal and assembly