try to use cross-mingw if we can find it with WINDOZE=1
[k8jam.git] / defaults / build / Jambase.build.genfile
blobcca107d8410eaf24d14a1610420698db0debaf86
1 # /GenFile target : image sources ;
3 # Runs the command "_image_ _target_ _sources_" to create _target_ from
4 # _sources_ and _image_ (where _image_ is an executable built by the
5 # @Main rule)
7 rule GenFile {
8   local _t = [ FGristSourceFiles $(<) ] ;
9   local _s = [ FAppendSuffix $(>[1]) : $(SUFEXE) ] ;
10   Depends $(_t) : $(_s) $(>[2-]) ;
11   GenFile1 $(_t) : $(_s) $(>[2-]) ;
12   Clean clean : $(_t) ;
15 rule GenFile1 {
16   MakeLocate $(<) : $(LOCATE_SOURCE) ;
17   SEARCH on $(>) = $(SEARCH_SOURCE) ;
21 actions GenFile1 {
22   $(>[1]) $(<) $(>[2-])
26 rule IncFile {
27   local _t = [ FGristSourceFiles $(<) ] ;
28   Includes $(_t) : $(>) ;