common/makefiles/MakeBase.gmk

changeset 501
e20ffc02e437
parent 494
e64f2cb57d05
child 557
d2c1f80118de
equal deleted inserted replaced
496:3229597524ca 501:e20ffc02e437
63 # rm -f thepaths 63 # rm -f thepaths
64 # $(call ListPathsSafely,THEPATHS,\n, >> thepaths) 64 # $(call ListPathsSafely,THEPATHS,\n, >> thepaths)
65 # The \n argument means translate spaces into \n 65 # The \n argument means translate spaces into \n
66 # if instead , , (a space) is supplied, then spaces remain spaces. 66 # if instead , , (a space) is supplied, then spaces remain spaces.
67 define ListPathsSafely 67 define ListPathsSafely
68 $(if $(word 10001,$($1)),$(error Cannot list safely more than 10000 paths. $1 has $(words $($1)) paths!)) 68 $(if $(word 16001,$($1)),$(error Cannot list safely more than 16000 paths. $1 has $(words $($1)) paths!))
69 $(call ListPathsSafely_If,$1,$2,1,250) 69 $(call ListPathsSafely_If,$1,$2,1,250)
70 $(call ListPathsSafely_If,$1,$2,251,500) 70 $(call ListPathsSafely_If,$1,$2,251,500)
71 $(call ListPathsSafely_If,$1,$2,501,750) 71 $(call ListPathsSafely_If,$1,$2,501,750)
72 $(call ListPathsSafely_If,$1,$2,751,1000) 72 $(call ListPathsSafely_If,$1,$2,751,1000)
73 73
114 $(call ListPathsSafely_If,$1,$2,9001,9250) 114 $(call ListPathsSafely_If,$1,$2,9001,9250)
115 $(call ListPathsSafely_If,$1,$2,9251,9500) 115 $(call ListPathsSafely_If,$1,$2,9251,9500)
116 $(call ListPathsSafely_If,$1,$2,9501,9750) 116 $(call ListPathsSafely_If,$1,$2,9501,9750)
117 $(call ListPathsSafely_If,$1,$2,9751,10000) 117 $(call ListPathsSafely_If,$1,$2,9751,10000)
118 118
119 $(call ListPathsSafely_If,$1,$2,10001,10250)
120 $(call ListPathsSafely_If,$1,$2,10251,10500)
121 $(call ListPathsSafely_If,$1,$2,10501,10750)
122 $(call ListPathsSafely_If,$1,$2,10751,11000)
123
124 $(call ListPathsSafely_If,$1,$2,11001,11250)
125 $(call ListPathsSafely_If,$1,$2,11251,11500)
126 $(call ListPathsSafely_If,$1,$2,11501,11750)
127 $(call ListPathsSafely_If,$1,$2,11751,12000)
128
129 $(call ListPathsSafely_If,$1,$2,12001,12250)
130 $(call ListPathsSafely_If,$1,$2,12251,12500)
131 $(call ListPathsSafely_If,$1,$2,12501,12750)
132 $(call ListPathsSafely_If,$1,$2,12751,13000)
133
134 $(call ListPathsSafely_If,$1,$2,13001,13250)
135 $(call ListPathsSafely_If,$1,$2,13251,13500)
136 $(call ListPathsSafely_If,$1,$2,13501,13750)
137 $(call ListPathsSafely_If,$1,$2,13751,14000)
138
139 $(call ListPathsSafely_If,$1,$2,14001,14250)
140 $(call ListPathsSafely_If,$1,$2,14251,14500)
141 $(call ListPathsSafely_If,$1,$2,14501,14750)
142 $(call ListPathsSafely_If,$1,$2,14751,15000)
143
144 $(call ListPathsSafely_If,$1,$2,15001,15250)
145 $(call ListPathsSafely_If,$1,$2,15251,15500)
146 $(call ListPathsSafely_If,$1,$2,15501,15750)
147 $(call ListPathsSafely_If,$1,$2,15751,16000)
148
119 $(call ListPathsSafely_Printf,$1,$2,$3,1) 149 $(call ListPathsSafely_Printf,$1,$2,$3,1)
120 $(call ListPathsSafely_Printf,$1,$2,$3,251) 150 $(call ListPathsSafely_Printf,$1,$2,$3,251)
121 $(call ListPathsSafely_Printf,$1,$2,$3,501) 151 $(call ListPathsSafely_Printf,$1,$2,$3,501)
122 $(call ListPathsSafely_Printf,$1,$2,$3,751) 152 $(call ListPathsSafely_Printf,$1,$2,$3,751)
123 153
163 193
164 $(call ListPathsSafely_Printf,$1,$2,$3,9001) 194 $(call ListPathsSafely_Printf,$1,$2,$3,9001)
165 $(call ListPathsSafely_Printf,$1,$2,$3,9251) 195 $(call ListPathsSafely_Printf,$1,$2,$3,9251)
166 $(call ListPathsSafely_Printf,$1,$2,$3,9501) 196 $(call ListPathsSafely_Printf,$1,$2,$3,9501)
167 $(call ListPathsSafely_Printf,$1,$2,$3,9751) 197 $(call ListPathsSafely_Printf,$1,$2,$3,9751)
198
199 $(call ListPathsSafely_Printf,$1,$2,$3,10001)
200 $(call ListPathsSafely_Printf,$1,$2,$3,10251)
201 $(call ListPathsSafely_Printf,$1,$2,$3,10501)
202 $(call ListPathsSafely_Printf,$1,$2,$3,10751)
203
204 $(call ListPathsSafely_Printf,$1,$2,$3,11001)
205 $(call ListPathsSafely_Printf,$1,$2,$3,11251)
206 $(call ListPathsSafely_Printf,$1,$2,$3,11501)
207 $(call ListPathsSafely_Printf,$1,$2,$3,11751)
208
209 $(call ListPathsSafely_Printf,$1,$2,$3,12001)
210 $(call ListPathsSafely_Printf,$1,$2,$3,12251)
211 $(call ListPathsSafely_Printf,$1,$2,$3,12501)
212 $(call ListPathsSafely_Printf,$1,$2,$3,12751)
213
214 $(call ListPathsSafely_Printf,$1,$2,$3,13001)
215 $(call ListPathsSafely_Printf,$1,$2,$3,13251)
216 $(call ListPathsSafely_Printf,$1,$2,$3,13501)
217 $(call ListPathsSafely_Printf,$1,$2,$3,13751)
218
219 $(call ListPathsSafely_Printf,$1,$2,$3,14001)
220 $(call ListPathsSafely_Printf,$1,$2,$3,14251)
221 $(call ListPathsSafely_Printf,$1,$2,$3,14501)
222 $(call ListPathsSafely_Printf,$1,$2,$3,14751)
223
224 $(call ListPathsSafely_Printf,$1,$2,$3,15001)
225 $(call ListPathsSafely_Printf,$1,$2,$3,15251)
226 $(call ListPathsSafely_Printf,$1,$2,$3,15501)
227 $(call ListPathsSafely_Printf,$1,$2,$3,15751)
168 endef 228 endef
169 229
170 define ListPathsSafelyNow_IfPrintf 230 define ListPathsSafelyNow_IfPrintf
171 ifneq (,$$(word $4,$$($1))) 231 ifneq (,$$(word $4,$$($1)))
172 $$(eval $1_LPS$4:=$$(call compress_paths,$$(wordlist $4,$5,$$($1)))) 232 $$(eval $1_LPS$4:=$$(call compress_paths,$$(wordlist $4,$5,$$($1))))

mercurial