Commit 850000aa authored by Richard Levitte's avatar Richard Levitte
Browse files

Build files: don't generate empty action lines in generatedir()

parent 57ade571
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1084,11 +1084,11 @@ EOF

      foreach my $type (("dso", "lib", "bin", "script")) {
          next unless defined($unified_info{dirinfo}->{$dir}->{products}->{$type});
          if ($type eq "lib") {
              foreach my $lib (@{$unified_info{dirinfo}->{$dir}->{products}->{$type}}) {
                  push @actions, "";
              }
          } else {
          # For lib object files, we could update the library.  However, it
          # was decided that it's enough to build the directory local object
          # files, so we don't need to add any actions, and the dependencies
          # are already taken care of.
          if ($type ne "lib") {
              foreach my $prod (@{$unified_info{dirinfo}->{$dir}->{products}->{$type}}) {
                  if (dirname($prod) eq $dir) {
                      push @deps, $prod.$extinfo{$type};
+5 −6
Original line number Diff line number Diff line
@@ -528,16 +528,15 @@ EOF

      foreach my $type (("dso", "lib", "bin", "script")) {
          next unless defined($unified_info{dirinfo}->{$dir}->{products}->{$type});
          if ($type eq "lib") {
              foreach my $lib (@{$unified_info{dirinfo}->{$dir}->{products}->{$type}}) {
                  push @actions, "";
              }
          } else {
          # For lib object files, we could update the library.  However,
          # LIB on Windows doesn't work that way, so we won't create any
          # actions for it, and the dependencies are already taken care of.
          if ($type ne "lib") {
              foreach my $prod (@{$unified_info{dirinfo}->{$dir}->{products}->{$type}}) {
                  if (dirname($prod) eq $dir) {
                      push @deps, $prod.$extinfo{$type};
                  } else {
                      push @actions, "\t@ : No support to produce $type ".join(", ", @{$unified_info{dirinfo}->{$dir}->{products}->{$type}});
                      push @actions, "\t@rem No support to produce $type ".join(", ", @{$unified_info{dirinfo}->{$dir}->{products}->{$type}});
                  }
              }
          }