Build file templates: Use explicit files instead of $< or $? for pods
[openssl.git] / Configurations / windows-makefile.tmpl
index cc19b312558bd958f6551f72e46b1ec2285c165e..275c93ebc1683541c90b7e9e961eefc2f53a4e7f 100644 (file)
@@ -586,11 +586,12 @@ reconfigure reconf:
 
       if ($args{src} =~ /\.html$/) {
          my $title = basename($args{src}, ".html");
+         my $pod = $args{generator}->[0];
          return <<"EOF";
-$args{src}: $args{generator}->[0]
+$args{src}: "$pod"
        pod2html "--podroot=\$(SRCDIR)/doc" --htmldir=.. \\
-                --podpath=man1:man3:man5:man7 "--infile=\$<" "--title=$title" \\
-       | \$(PERL) -pe "s|href=\\"http://man\\.he\\.net/(man\d/[^\\"]+)(?:\\.html)?\\"|href=\\"../\$1.html|g;" \\
+                --podpath=man1:man3:man5:man7 "--infile=$pod" "--title=$title" \\
+       | \$(PERL) -pe ^"s^|href=\\^"http://man\\.he\\.net/^(man\\d/[^^\\^"]+^)^(?:\.html^)?^"^|href=\\^"../\$\$1.html^|g;^" \\
        > \$\@
 EOF
       } elsif (platform->isdef($args{src})) {