+rule recursive-glob
+{
+ local result ;
+ result += $(<) ;
+ local fullname ;
+ local contents = [ GLOB [ ConcatDirs $(SUBDIR) $(<) ] : $(>) ] ;
+ for fullname in $(contents)
+ {
+ local split-path = [ MATCH ^$(SUBDIR)/(.*)$ : $(fullname) ] ;
+ local name = $(split-path[1]) ;
+ if ! ( $(name:D=) in . .. .svn ) {
+ result += [ recursive-glob $(name) : $(>) ] ;
+ }
+ }
+ return $(result) ;
+}
+
+IMAGEPATHS = [ recursive-glob images : * ] ;