diff src/tee/Makefile @ 14978:d148cd1163a5 v8.1.0500

patch 8.1.0500: cleaning up in src/tee may not always work commit https://github.com/vim/vim/commit/833e5dab143034b7e43bc0be49b2eb3687ff9ab7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 28 15:43:58 2018 +0100 patch 8.1.0500: cleaning up in src/tee may not always work Problem: Cleaning up in src/tee may not always work. Solution: Use "rm" when appropriate. (Michael Soyka, closes https://github.com/vim/vim/issues/3571)
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Oct 2018 15:45:05 +0100
parents d95d6580d84b
children c2fbac867d9c
line wrap: on
line diff
--- a/src/tee/Makefile
+++ b/src/tee/Makefile
@@ -3,6 +3,12 @@
 CC=gcc
 CFLAGS=-O2 -fno-strength-reduce
 
+ifneq (sh.exe, $(SHELL))
+DEL = rm
+else
+DEL = del
+endif
+
 tee.exe: tee.o
 	$(CC) $(CFLAGS) -s -o $@ $<
 
@@ -10,6 +16,6 @@ tee.o: tee.c
 	$(CC) $(CFLAGS) -c $<
 
 clean:
-	- del tee.o
-	- del tee.exe
+	- $(DEL) tee.o
+	- $(DEL) tee.exe