1 # Copyright (c) 2005 Vladimir Prus.
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE_1_0.txt or copy at
4 # http://www.boost.org/LICENSE_1_0.txt)
14 type.register NOTFILE_MAIN ;
17 class notfile-generator : generator
19 rule __init__ ( * : * )
21 generator.__init__ $(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8)
22 : $(9) : $(10) : $(11) : $(12) : $(13) : $(14) : $(15) : $(16) :
23 $(17) : $(18) : $(19) ;
26 rule run ( project name ? : property-set : sources * : multiple ? )
29 local action-name = [ $(property-set).get <action> ] ;
30 local m = [ MATCH ^@(.*) : $(action-name) ] ;
33 action = [ new action $(sources) : $(m[1]) : $(property-set) ] ;
37 action = [ new action $(sources) : notfile.run : $(property-set) ] ;
39 local t = [ new notfile-target $(name) : $(project) : $(action) ] ;
40 return [ virtual-target.register $(t) ] ;
45 generators.register [ new notfile-generator notfile.main : : NOTFILE_MAIN ] ;
48 toolset.flags notfile.run ACTION : <action> ;
57 rule notfile ( target-name : action + : sources * : requirements * :
60 targets.create-typed-target NOTFILE_MAIN : [ project.current ] :
61 $(target-name) : $(sources) : $(requirements) <action>$(action) :
65 IMPORT $(__name__) : notfile : : notfile ;