]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Write out separate dependcy lists for .o and .g.o so as to not confuse
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 15 Aug 2003 17:39:28 +0000 (17:39 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 15 Aug 2003 17:39:28 +0000 (17:39 +0000)
the Makefile in the deal.II subdir.

git-svn-id: https://svn.dealii.org/trunk@7940 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/make_dependencies.cc

index 3cc36ad2642081508c5237b18e4bb39486daff2a..d08fcaa684fceb496e38d182ed604a7d480c3357 100644 (file)
@@ -406,12 +406,21 @@ int main (int argc, char **argv)
         basename = std::string (basename.begin()+basename.rfind("/")+1,
                                 basename.end());
       
-      std::cout << basepath << "/" << basename << ".o "
-                << basepath << "/" << basename << ".g.o: \\"
+      std::cout << basepath << "/" << basename << ".o: \\"
                 << std::endl
                 << "\t\t" << *file;
       
       const std::set<std::string> includes = get_all_includes (*file);
+
+      for (std::set<std::string>::const_iterator i=includes.begin();
+           i!=includes.end(); ++i)
+        std::cout << "\\\n\t\t" << *i;
+      std::cout << std::endl;
+
+      std::cout << basepath << "/" << basename << ".g.o: \\"
+                << std::endl
+                << "\t\t" << *file;
+      
       for (std::set<std::string>::const_iterator i=includes.begin();
            i!=includes.end(); ++i)
         std::cout << "\\\n\t\t" << *i;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.