common/makefiles/MakeBase.gmk

changeset 645
5b0b6ef58dbf
parent 557
d2c1f80118de
child 660
19a59a13b3ef
equal deleted inserted replaced
644:b70196e01c53 645:5b0b6ef58dbf
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

mercurial