Fixed sub-make behaviour for export variable