From bb64cdd482fbabe47ec18f281601e024b2916ea6 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 15 Aug 2003 17:41:25 +0000 Subject: [PATCH] Document something. git-svn-id: https://svn.dealii.org/trunk@7941 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/common/scripts/make_dependencies.cc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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; -- 2.39.5