cosmetix in Jambase layout
[k8jam.git] / defaults / build / Jambase.build.genfile
blob5e68bd52837d5511a61bf823da04a3b5d555abf6
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-])