introduced: function 'makeTargetDir'