| 235 |
|
[0-9] := 0 1 2 3 4 5 6 7 8 9 # |
| 236 |
|
[A-F] := A B C D E F # |
| 237 |
|
|
| 238 |
< |
# Upper case and lower case functions. Each function has a single |
| 239 |
< |
# argument which is the text to alter |
| 238 |
> |
# Figure out whether we have $(eval) or not (GNU Make 3.80 and above) |
| 239 |
> |
# if we do not then we need to use the shell version of tr, and not the |
| 240 |
> |
# faster tr function above: |
| 241 |
|
|
| 242 |
< |
uc = $(call tr,$([a-z]),$([A-Z]),$1) |
| 243 |
< |
lc = $(call tr,$([A-Z]),$([a-z]),$1) |
| 242 |
> |
__have_eval := $(false) |
| 243 |
> |
__ignore := $(eval __have_eval := $(true)) |
| 244 |
|
|
| 245 |
+ |
ifndef __have_eval |
| 246 |
+ |
uc = $(shell echo $1 | tr "A-Z" "a-z") |
| 247 |
+ |
lc = $(shell echo $1 | tr "A-Z" "a-z") |
| 248 |
+ |
else |
| 249 |
+ |
uc = $(call tr,$([a-z]),$([A-Z]),$1) |
| 250 |
+ |
lc = $(call tr,$([A-Z]),$([a-z]),$1) |
| 251 |
+ |
endif |
| 252 |
+ |
|
| 253 |
|
# OK, now we can actually use these functions to figure out the names |
| 254 |
|
# of the module files: |
| 255 |
|
|