TARGET_FILE should not be propagated to sub-builds since it's meant only as a local override. This requires setting MAKEOVERRIDES and also undefining the value from the environment.