ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/make/Makefile.in
(Generate patch)

Comparing trunk/OOPSE-2.0/make/Makefile.in (file contents):
Revision 2157 by gezelter, Mon Apr 11 16:14:05 2005 UTC vs.
Revision 2158 by gezelter, Mon Apr 11 19:06:57 2005 UTC

# Line 235 | Line 235 | tr = $(eval __t := $3)                                
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines