Here are my two wishlist items:

1. A "local modules only, no system modules" flag, as described in my
previous post.

2. A "generate Makefile dependency list only" flag, such as
implemented by the following patch against 0.69, which allows a
Makefile to say, e.g.,

perlapp.dep:
        echo -n "foo.exe: " > perlapp.dep
        $(PP) $(PARFLAGS) -M PAR --depend foo.pl >> perlapp.dep

-include perlapp.dep

The -M PAR is a little hack so foo.exe will get rebuilt not only when
any of its dependencies change, but when the PAR modules change as
well (though not pp itself <shrug>).

Thanks,

Barry


*** pp.orig     Sat May 31 08:28:00 2003
--- pp  Wed Jun  4 09:27:40 2003
***************
*** 108,113 ****
--- 108,118 ----
          skip    => { map { ($_ => 1) } @{opt(X) || []} }
      );

+     if ($Options->{m}) {
+       print join(" \\\n\t", sort map($map{$_}{file}, keys %map))."\n";
+       exit 0;
+     }
+
      my %text;
      $text{$_} = ($map{$_}{type} =~ /^(?:module|autoload)$/) for keys %map;
      $map{$_}  = $map{$_}{file} for keys %map;
***************
*** 320,325 ****
--- 325,331 ----
          'S|save',       # Preserve PAR files
          'v|verbose:s',  # Verbosity level
          'V|version',    # Show version
+       'm|depend',     # Output dependencies only
      );

      $Options->{v} = 1 if exists $Options->{v} and $Options->{v} eq '';

Reply via email to