Change dependency output to construct Makefile macros
authorNorm Jacobs <Norm.Jacobs@Sun.COM>
Thu, 10 Jun 2010 15:08:47 -0500
changeset 17 56b936d4786f
parent 16 33aaaec59991
child 18 6da6bd662127
Change dependency output to construct Makefile macros
tools/build-watch.pl
--- a/tools/build-watch.pl	Thu Jun 10 15:06:28 2010 -0500
+++ b/tools/build-watch.pl	Thu Jun 10 15:08:47 2010 -0500
@@ -136,16 +136,19 @@
 my ($pkgs) = generate_package_requirements($tools, $files);
 
 if (defined($tools)) {
-	print "TOOL: $_\n" for (sort keys %$tools);
+	print "\n";
+	print "REQUIRED_TOOL +=\t$_\n" for (sort keys %$tools);
 }
 
 if (defined($files)) {
-	print "FILE: $_\n" for (sort keys %$files);
+	print "\n";
+	print "REQUIRED_FILE +=\t$_\n" for (sort keys %$files);
 }
 
 if (defined($pkgs)) {
 	@unique{values %$pkgs} = ();
-	print "PKG: $_\n" for (sort keys %unique);
+	print "\n";
+	print "REQUIRED_PKG +=\t$_\n" for (sort keys %unique);
 }
 
 exit(0);