close $fh or die "Can't close $filename: $!";
}
+if (@ARGV) {
+ my $workdir = shift;
+ chdir $workdir
+ or die "Couldn't chdir to '$workdir': $!";
+}
+
my $file;
# glob() picks up docs from extra .c or .h files that may be in unclean
# development trees.
$(PERLEXE) lib_pm.PL
cd ..\win32
$(PERLEXE) $(PL2BAT) $(UTILS)
- cd ..
- $(PERLEXE) autodoc.pl
- cd win32
+ $(PERLEXE) autodoc.pl ..
# Note that the pod cleanup in this next section is parsed (and regenerated
# by pod/buildtoc so please check that script before making changes here
cd ..\pod && $(MAKE) -f ..\win32\pod.mak converters
cd ..\lib && $(PERLEXE) lib_pm.PL
$(PERLEXE) $(PL2BAT) $(UTILS)
- cd .. && $(PERLEXE) autodoc.pl
+ $(PERLEXE) ..\autodoc.pl ..
# Note that the pod cleanup in this next section is parsed (and regenerated
# by pod/buildtoc so please check that script before making changes here