Subversion Repositories DevTools

Rev

Rev 255 | Rev 335 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 255 Rev 303
Line 57... Line 57...
57
#		    - ';' seperated path list
57
#		    - ';' seperated path list
58
#		    - Uses \ as a dir sep
58
#		    - Uses \ as a dir sep
59
#		    - Uses real spaces in pathnames
59
#		    - Uses real spaces in pathnames
60
#..
60
#..
61
 
61
 
62
#
-
 
63
#   Work around for a bug in make 3.81 where abspath assumes that the input
-
 
64
#   is a relative path. The work around checks for paths that have a : or start
-
 
65
#   with a '/ - and assumes these are absolute.
-
 
66
#   It will only call makes 'abspath' for relative paths.
-
 
67
#
-
 
68
myabspath = $(foreach dir,$1,$(call myabs1path,$(dir)))
-
 
69
myabs1path = $(if $(or $(findstring :,$1),$(filter /%,$1)),$1,$(abspath $1))
-
 
70
 
-
 
71
vc_libs     := $(subst ;,$(space),$(subst \,/,$(subst $(space),$(spacealt),$(VC_LIB))))
62
vc_libs     := $(subst ;,$(space),$(subst \,/,$(subst $(space),$(spacealt),$(VC_LIB))))
72
ALL_LIBDIRS := $(wildcard $(call myabspath,$(LIBDIRS))) $(vc_libs)
63
ALL_LIBDIRS := $(wildcard $(call myabspath,$(LIBDIRS))) $(vc_libs)
73
CS_LIB      := $(subst $(spacealt),$(space),$(subst $(space),$(empty),$(patsubst %,%;,$(subst /,\,$(ALL_LIBDIRS)))))
64
CS_LIB      := $(subst $(spacealt),$(space),$(subst $(space),$(empty),$(patsubst %,%;,$(subst /,\,$(ALL_LIBDIRS)))))
74
export CS_LIB
65
export CS_LIB
75
 
66