Make "distclean" target on Win32 clean up temporary HTML directory
authorSteve Hay <SteveHay@planit.com>
Fri, 17 Mar 2006 13:20:11 +0000 (13:20 +0000)
committerSteve Hay <SteveHay@planit.com>
Fri, 17 Mar 2006 13:20:11 +0000 (13:20 +0000)
that gets left behind after running the "install" target.
Also clean up a couple of leftover pod2html cache files.

p4raw-id: //depot/perl@27532

win32/Makefile
win32/makefile.mk

index 493b3ec..77f9ddc 100644 (file)
@@ -353,6 +353,7 @@ LIBDIR              = ..\lib
 EXTDIR         = ..\ext
 PODDIR         = ..\pod
 EXTUTILSDIR    = $(LIBDIR)\ExtUtils
+HTMLDIR                = .\html
 
 #
 INST_SCRIPT    = $(INST_TOP)$(INST_VER)\bin
@@ -1083,7 +1084,7 @@ Extensions_realclean:
 #-------------------------------------------------------------------------------
 
 doc: $(PERLEXE)
-       $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
+       $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \
            --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
            --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
 
@@ -1219,6 +1220,9 @@ distclean: realclean
        -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
        -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
        -if exist $(COREDIR) rmdir /s /q $(COREDIR)
+       -if exist pod2htmd.tmp del pod2htmd.tmp
+       -if exist pod2htmi.tmp del pod2htmi.tmp
+       -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR)
 
 install : all installbare installhtml
 
@@ -1231,7 +1235,7 @@ installbare : utils
        $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
 
 installhtml : doc
-       $(RCOPY) html\*.* $(INST_HTML)\*.*
+       $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.*
 
 inst_lib : $(CONFIGPM)
        copy splittree.pl ..
index 2fe0c44..ebf6e44 100644 (file)
@@ -348,6 +348,7 @@ LIBDIR              = ..\lib
 EXTDIR         = ..\ext
 PODDIR         = ..\pod
 EXTUTILSDIR    = $(LIBDIR)\ExtUtils
+HTMLDIR                = .\html
 
 #
 INST_SCRIPT    = $(INST_TOP)$(INST_VER)\bin
@@ -1236,7 +1237,7 @@ Extensions_realclean :
 
 
 doc: $(PERLEXE)
-       $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
+       $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \
            --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML:s,:,|,)"\
            --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
 
@@ -1366,6 +1367,9 @@ distclean: realclean
        -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
        -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
        -if exist $(COREDIR) rmdir /s /q $(COREDIR)
+       -if exist pod2htmd.tmp del pod2htmd.tmp
+       -if exist pod2htmi.tmp del pod2htmi.tmp
+       -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR)
 
 install : all installbare installhtml
 
@@ -1378,7 +1382,7 @@ installbare : $(RIGHTMAKE) utils
        $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
 
 installhtml : doc
-       $(RCOPY) html\*.* $(INST_HTML)\*.*
+       $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.*
 
 inst_lib : $(CONFIGPM)
        copy splittree.pl ..