From: Wolfgang Bangerth Date: Fri, 15 Aug 2003 17:41:25 +0000 (+0000) Subject: Document something. X-Git-Tag: v8.0.0~16269 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b7d2df8e5f9973b54d0ee3fbae497c96276c9ab;p=dealii.git Document something. git-svn-id: https://svn.dealii.org/trunk@7941 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/common/scripts/make_dependencies.cc b/deal.II/common/scripts/make_dependencies.cc index d08fcaa684..94810ae00a 100644 --- a/deal.II/common/scripts/make_dependencies.cc +++ b/deal.II/common/scripts/make_dependencies.cc @@ -405,22 +405,26 @@ int main (int argc, char **argv) if (basename.rfind ("/") != std::string::npos) basename = std::string (basename.begin()+basename.rfind("/")+1, basename.end()); - - std::cout << basepath << "/" << basename << ".o: \\" - << std::endl - << "\t\t" << *file; - + + // get all direct and indirect + // includes for this file... const std::set includes = get_all_includes (*file); + // ...write the rule for the .o + // file... + std::cout << basepath << "/" << basename << ".o: \\" + << std::endl + << "\t\t" << *file; for (std::set::const_iterator i=includes.begin(); i!=includes.end(); ++i) std::cout << "\\\n\t\t" << *i; std::cout << std::endl; + // ...and a similar rule for + // the .g.o file std::cout << basepath << "/" << basename << ".g.o: \\" << std::endl << "\t\t" << *file; - for (std::set::const_iterator i=includes.begin(); i!=includes.end(); ++i) std::cout << "\\\n\t\t" << *i;