Use rd instead rmdir
authorFdaSilvaYY <fdasilvayy@gmail.com>
Thu, 3 Jun 2021 14:28:21 +0000 (16:28 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 7 Jun 2021 10:31:11 +0000 (12:31 +0200)
to avoid collision with rmdir.exe from cygwin or msys

Original idea by Mladen Turk @mturk

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15610)

Configurations/windows-makefile.tmpl

index d6ba2d13fd13c2e5d3a431c3e0dd7860331ed187..34b6c7878a526efcd25dd4a0f9b173c306d832e7 100644 (file)
@@ -461,10 +461,10 @@ libclean:
        -del /Q /F $(LIBS) libcrypto.* libssl.* ossl_static.pdb
 
 clean: libclean
-       -rmdir /Q /S $(HTMLDOCS1_BLDDIRS)
-       -rmdir /Q /S $(HTMLDOCS3_BLDDIRS)
-       -rmdir /Q /S $(HTMLDOCS5_BLDDIRS)
-       -rmdir /Q /S $(HTMLDOCS7_BLDDIRS)
+       -rd /Q /S $(HTMLDOCS1_BLDDIRS)
+       -rd /Q /S $(HTMLDOCS3_BLDDIRS)
+       -rd /Q /S $(HTMLDOCS5_BLDDIRS)
+       -rd /Q /S $(HTMLDOCS7_BLDDIRS)
        {- join("\n\t", map { "-del /Q /F $_" } @PROGRAMS) -}
        {- join("\n\t", map { "-del /Q /F $_" } @MODULES) -}
        {- join("\n\t", map { "-del /Q /F $_" } @SCRIPTS) -}
@@ -474,7 +474,7 @@ clean: libclean
        -del /Q /S /F engines\*.lib engines\*.exp
        -del /Q /S /F apps\*.lib apps\*.rc apps\*.res apps\*.exp
        -del /Q /S /F test\*.exp
-       -rmdir /Q /S test\test-runs
+       -rd /Q /S test\test-runs
 
 distclean: clean
        -del /Q /F configdata.pm