--- old/make/common/MakeBase.gmk 2018-03-10 00:39:15.958266275 +0100 +++ new/make/common/MakeBase.gmk 2018-03-10 00:39:15.610252460 +0100 @@ -518,12 +518,14 @@ define install-file $(call MakeTargetDir) $(RM) '$(call DecodeSpace, $@)' - if [ '$(call DecodeSpace, $(dir $@))' != \ + if [ '$(call DecodeSpace, $(dir $(call EncodeSpace, $@)))' != \ '$(call DecodeSpace, $(dir $(call EncodeSpace, $<)))' ]; then \ - $(CP) -f -r -P '$(call DecodeSpace, $<)' '$(call DecodeSpace, $(@D))'; \ - if [ '$(call DecodeSpace, $(@F))' != \ + $(CP) -f -r -P '$(call DecodeSpace, $<)' \ + '$(call DecodeSpace, $(dir $(call EncodeSpace, $@)))'; \ + if [ '$(call DecodeSpace, $(notdir $(call EncodeSpace, $@)))' != \ '$(call DecodeSpace, $(notdir $(call EncodeSpace, $(<))))' ]; then \ - $(MV) '$(call DecodeSpace, $(@D)/$(