common/makefiles/MakeBase.gmk
changeset 16419 50dd98738641
parent 15903 bc0e6cd9d760
child 16580 6acb502beafa
equal deleted inserted replaced
15910:e57109801d9c 16419:50dd98738641
    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.
       
    55 define ListPathsSafely_If
    54 define ListPathsSafely_If
    56     $(if $(word $3,$($1)),$(eval $1_LPS$3:=$(call compress_paths,$(subst $$,$$$$,$(wordlist $3,$4,$($1))))))
    55     $(if $(word $3,$($1)),$(eval $1_LPS$3:=$(call compress_paths,$(wordlist $3,$4,$($1)))))
    57 endef
    56 endef
    58 
    57 
    59 define ListPathsSafely_Printf
    58 define ListPathsSafely_Printf
    60     $(if $(strip $($1_LPS$4)),printf -- "$(strip $($1_LPS$4))\n" | $(decompress_paths) $3)
    59     $(if $(strip $($1_LPS$4)),printf -- "$(strip $($1_LPS$4))\n" | $(decompress_paths) $3)
    61 endef
    60 endef