]> git.tdb.fi Git - builder.git/commitdiff
Allow doing clean and build in the same run
authorMikko Rasa <tdb@tdb.fi>
Fri, 20 Jul 2012 19:44:35 +0000 (22:44 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 20 Jul 2012 20:56:07 +0000 (23:56 +0300)
source/builder.cpp

index e6619b1382ff91b02846117c264af9645b382472..665983100894acad49db12d8eb478055713c9ad8 100644 (file)
@@ -68,7 +68,7 @@ Builder::Builder(int argc, char **argv):
 
        GetOpt getopt;
        getopt.add_option('a', "analyze",    analyze_mode,  GetOpt::REQUIRED_ARG).set_help("Perform dependency analysis.", "MODE");
-       getopt.add_option('b', "build",      build,         GetOpt::NO_ARG).set_help("Perform build even if doing analysis.");
+       getopt.add_option('b', "build",      build,         GetOpt::NO_ARG).set_help("Perform build even if also doing something else.");
        getopt.add_option('c', "clean",      clean,         GetOpt::NO_ARG).set_help("Clean buildable targets.");
        getopt.add_option('f', "file",       build_file,    GetOpt::REQUIRED_ARG).set_help("Read build instructions from FILE.", "FILE");
        getopt.add_option('h', "help",       help,          GetOpt::NO_ARG).set_help("Print this message.");
@@ -297,7 +297,7 @@ int Builder::main()
 
        if(clean)
                exit_code = do_clean();
-       else if(build)
+       if(build)
                exit_code = do_build();
 
        return exit_code;