common/makefiles/MakeBase.gmk
changeset 15903 bc0e6cd9d760
parent 15051 d32ad37472e6
child 16419 50dd98738641
equal deleted inserted replaced
15902:c50813cf3f68 15903:bc0e6cd9d760
    49 
    49 
    50 decompress_paths=$(SED) -f $(SRC_ROOT)/common/makefiles/support/ListPathsSafely-uncompress.sed -e 's|X99|\\n|g' \
    50 decompress_paths=$(SED) -f $(SRC_ROOT)/common/makefiles/support/ListPathsSafely-uncompress.sed -e 's|X99|\\n|g' \
    51 		     -e 's|X98|$(OUTPUT_ROOT)|g' -e 's|X97|$(SRC_ROOT)|g' \
    51 		     -e 's|X98|$(OUTPUT_ROOT)|g' -e 's|X97|$(SRC_ROOT)|g' \
    52 		     -e 's|X00|X|g' | tr '\n' '$2'
    52 		     -e 's|X00|X|g' | tr '\n' '$2'
    53 
    53 
       
    54 # Subst in an extra $ to prevent it from disappearing.
    54 define ListPathsSafely_If
    55 define ListPathsSafely_If
    55     $(if $(word $3,$($1)),$(eval $1_LPS$3:=$(call compress_paths,$(wordlist $3,$4,$($1)))))
    56     $(if $(word $3,$($1)),$(eval $1_LPS$3:=$(call compress_paths,$(subst $$,$$$$,$(wordlist $3,$4,$($1))))))
    56 endef
    57 endef
    57 
    58 
    58 define ListPathsSafely_Printf
    59 define ListPathsSafely_Printf
    59     $(if $(strip $($1_LPS$4)),printf -- "$(strip $($1_LPS$4))\n" | $(decompress_paths) $3)
    60     $(if $(strip $($1_LPS$4)),printf -- "$(strip $($1_LPS$4))\n" | $(decompress_paths) $3)
    60 endef
    61 endef