summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-11-07 19:44:22 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-11-07 19:44:22 (GMT)
commit8a4ae14a302c169b9d357b262f5e6f605a11acae (patch)
tree06d9069d4b2e8491209ee2b04ea22cde525053e8
parent59e0fa6942d302364ddcbbf4a22ac0e9843ffbaa (diff)
downloadCMake-8a4ae14a302c169b9d357b262f5e6f605a11acae.zip
CMake-8a4ae14a302c169b9d357b262f5e6f605a11acae.tar.gz
CMake-8a4ae14a302c169b9d357b262f5e6f605a11acae.tar.bz2
make sure default_target is first
-rw-r--r--Source/cmUnixMakefileGenerator.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 43743d8..663a6a3 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -232,6 +232,14 @@ void cmUnixMakefileGenerator::OutputMakefile(const char* file)
fout << " " << m_Makefile->GetHomeOutputDirectory() << "/CMakeCache.txt\n";
fout << "\n\n";
this->OutputMakeVariables(fout);
+ // Set up the default target as the VERY first target, so that make with no arguments will run it
+ this->OutputMakeRule(fout,
+ "Default target executed when no arguments are given to make",
+ "default_target",
+ 0,
+ "$(MAKE) -$(MAKEFLAGS) cmake.depends",
+ "$(MAKE) -$(MAKEFLAGS) all");
+
this->OutputTargetRules(fout);
this->OutputDependLibs(fout);
this->OutputTargets(fout);
@@ -1304,12 +1312,6 @@ void cmUnixMakefileGenerator::OutputInstallRules(std::ostream& fout)
void cmUnixMakefileGenerator::OutputMakeRules(std::ostream& fout)
{
this->OutputMakeRule(fout,
- "Default target executed when no arguments are given to make",
- "default_target",
- 0,
- "$(MAKE) -$(MAKEFLAGS) cmake.depends",
- "$(MAKE) -$(MAKEFLAGS) all");
- this->OutputMakeRule(fout,
"Default build rule",
"all",
"cmake.depends $(TARGETS) $(SUBDIR_BUILD)",