Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
14977:4874d0c1915c | 14978:d148cd1163a5 |
---|---|
1 # A very (if not the most) simplistic Makefile for MS-Windows and OS/2 | 1 # A very (if not the most) simplistic Makefile for MS-Windows and OS/2 |
2 | 2 |
3 CC=gcc | 3 CC=gcc |
4 CFLAGS=-O2 -fno-strength-reduce | 4 CFLAGS=-O2 -fno-strength-reduce |
5 | |
6 ifneq (sh.exe, $(SHELL)) | |
7 DEL = rm | |
8 else | |
9 DEL = del | |
10 endif | |
5 | 11 |
6 tee.exe: tee.o | 12 tee.exe: tee.o |
7 $(CC) $(CFLAGS) -s -o $@ $< | 13 $(CC) $(CFLAGS) -s -o $@ $< |
8 | 14 |
9 tee.o: tee.c | 15 tee.o: tee.c |
10 $(CC) $(CFLAGS) -c $< | 16 $(CC) $(CFLAGS) -c $< |
11 | 17 |
12 clean: | 18 clean: |
13 - del tee.o | 19 - $(DEL) tee.o |
14 - del tee.exe | 20 - $(DEL) tee.exe |
15 | 21 |