diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-10-28 15:43:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-10-28 15:43:58 +0100 |
commit | 833e5dab143034b7e43bc0be49b2eb3687ff9ab7 (patch) | |
tree | 8b1eadfebcdff371250baf829336a97d99786a00 /src/tee/Makefile | |
parent | 1c29943416207e21abbc790eaf563b36789170c2 (diff) | |
download | vim-git-833e5dab143034b7e43bc0be49b2eb3687ff9ab7.tar.gz |
patch 8.1.0500: cleaning up in src/tee may not always workv8.1.0500
Problem: Cleaning up in src/tee may not always work.
Solution: Use "rm" when appropriate. (Michael Soyka, closes #3571)
Diffstat (limited to 'src/tee/Makefile')
-rw-r--r-- | src/tee/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tee/Makefile b/src/tee/Makefile index 12c43d510..7419913cc 100644 --- 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 |