< prev index next >
make/common/MakeBase.gmk
Print this page
*** 573,601 ****
$(eval $1_dotdots := $(call DirToDotDot, $(patsubst $($(strip $1)_prefix)/%, %, $2))) \
$(eval $1_suffix := $(patsubst $($(strip $1)_prefix)/%, %, $1)) \
$($(strip $1)_dotdots)/$($(strip $1)_suffix)
################################################################################
! # link-file-* works similarly to install file but creates a symlink instead on
! # platforms that support it. There are two versions, either creating a relative
! # or an absolute link.
! ifeq ($(OPENJDK_BUILD_OS), windows)
! link-file-absolute = $(install-file)
! link-file-relative = $(install-file)
! else
! define link-file-relative
$(call MakeDir, $(@D))
$(RM) $@
$(LN) -s $(call RelativePath, $<, $(@D)) $@
! endef
! define link-file-absolute
$(call MakeDir, $(@D))
$(RM) $@
$(LN) -s $< $@
! endef
! endif
################################################################################
# Filter out duplicate sub strings while preserving order. Keeps the first occurance.
uniq = \
$(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
--- 573,597 ----
$(eval $1_dotdots := $(call DirToDotDot, $(patsubst $($(strip $1)_prefix)/%, %, $2))) \
$(eval $1_suffix := $(patsubst $($(strip $1)_prefix)/%, %, $1)) \
$($(strip $1)_dotdots)/$($(strip $1)_suffix)
################################################################################
! # link-file-* works similarly to install-file but creates a symlink instead.
! # There are two versions, either creating a relative or an absolute link. Be
! # careful when using this on Windows since the symlink created is only valid in
! # the unix emulation environment.
! define link-file-relative
$(call MakeDir, $(@D))
$(RM) $@
$(LN) -s $(call RelativePath, $<, $(@D)) $@
! endef
! define link-file-absolute
$(call MakeDir, $(@D))
$(RM) $@
$(LN) -s $< $@
! endef
################################################################################
# Filter out duplicate sub strings while preserving order. Keeps the first occurance.
uniq = \
$(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
< prev index next >