]> granicus.if.org Git - nethack/commitdiff
Win32: delete the o directory only if it exists
authorRay Chason <ray.chason@protonmail.com>
Thu, 24 May 2018 03:16:12 +0000 (23:16 -0400)
committerPasi Kallinen <paxed@alt.org>
Mon, 10 Sep 2018 18:13:00 +0000 (21:13 +0300)
sys/winnt/Makefile.gcc

index 41fba8921dc3545dcc8cb31d623ea42f6e6ae987..0adfa46e6a2529c4e909aacc8053aa6427ab87f0 100644 (file)
@@ -1060,7 +1060,7 @@ spotless: clean
        $(subst /,\,if exist $(MSWIN)/rip.bmp del $(MSWIN)/rip.bmp)
        $(subst /,\,if exist $(MSWIN)/splash.bmp del $(MSWIN)/splash.bmp)
 ifneq "$(OBJ)" ""
-       $(subst /,\,rmdir $(OBJ)) /s /Q
+       $(subst /,\,if exist $(OBJ) rmdir $(OBJ)) /s /Q
 endif
 
 clean: