Makefile: Disable rules by default

This commit is contained in:
Daniel Marjamäki 2011-10-17 20:18:36 +02:00
parent bf0386c938
commit 34e2a2ad66
2 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
# This file is generated by tools/dmake, do not edit.
# To compile without rules, use 'make HAVE_RULES=no'
# To compile with rules, use 'make HAVE_RULES=yes'
ifndef HAVE_RULES
HAVE_RULES=yes
HAVE_RULES=no
endif
ifndef CXXFLAGS

View File

@ -93,10 +93,10 @@ static void getCppFiles(std::vector<std::string> &files, const std::string &path
}
static void makeConditionalVariable(std::ostream &os, const std::string &variable, const std::string &value)
static void makeConditionalVariable(std::ostream &os, const std::string &variable, const std::string &defaultValue)
{
os << "ifndef " << variable << '\n'
<< " " << variable << '=' << value << '\n'
<< " " << variable << '=' << defaultValue << '\n'
<< "endif\n"
<< "\n";
}
@ -202,8 +202,8 @@ int main(int argc, char **argv)
}
fout << "# This file is generated by tools/dmake, do not edit.\n\n";
fout << "# To compile without rules, use 'make HAVE_RULES=no'\n";
makeConditionalVariable(fout, "HAVE_RULES", "yes");
fout << "# To compile with rules, use 'make HAVE_RULES=yes'\n";
makeConditionalVariable(fout, "HAVE_RULES", "no");
// Makefile settings..
if (release) {