# (C) Copyright David Abrahams 2001. Permission to copy, use, modify, sell and # distribute this software is granted provided this copyright notice appears in # all copies. This software is provided "as is" without express or implied # warranty, and with no claim as to its suitability for any purpose. # First of all, check the jam version if $(JAM_VERSION:J="") < 030103 { ECHO "error: Boost.Jam version 3.1.3 or later required" ; EXIT ; } # Bootstrap the module system. And bring the import rule into the global module. # SEARCH on modules.jam = $(BOOST_BUILD_PATH) ; module modules { include modules.jam ; } IMPORT modules : import : : import ; # Reload the modules, to clean up things. The modules module can tolerate # being included twice. # import modules ; # Check to see if the user is asking for help as soon as possible. # This is first action, so that we can interrupt the regular build # process if they are asking for help. # import doc ; if ! [ doc.help ] { # No help requested, go ahead and load and build the users # project. # Allow users to override the build system file from the # command-line (mostly for testing) local build-system = [ MATCH --build-system=(.*) : $(ARGV) ] ; build-system ?= build-system ; # Use last element in case of multiple command-line options import $(build-system[-2]) ; }