fixes so "make clean" will work without failing on cmd.exe

This commit is contained in:
Bob Andrews 2022-11-18 16:28:25 +01:00
parent 1ce044c2b4
commit 0408d71cc5
3 changed files with 33 additions and 3 deletions

View File

@ -5,6 +5,16 @@ ifdef CROSS_COMPILE
$(info CC: $(CC))
endif
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
DEL = -del /f
else
DEL = $(RM)
endif
CFLAGS += -O3 -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS)
.PHONY: mostlyclean clean
@ -15,6 +25,6 @@ ataricvt: ataricvt.c
$(CC) $(CFLAGS) -o ataricvt ataricvt.c
mostlyclean clean:
$(RM) ataricvt
$(DEL) ataricvt
install zip:

View File

@ -5,6 +5,16 @@ ifdef CROSS_COMPILE
$(info CC: $(CC))
endif
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
DEL = -del /f
else
DEL = $(RM)
endif
CFLAGS += -O3 -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS)
.PHONY: mostlyclean clean
@ -15,6 +25,6 @@ gamate-fixcart: gamate-fixcart.c
$(CC) $(CFLAGS) -o gamate-fixcart gamate-fixcart.c
mostlyclean clean:
$(RM) gamate-fixcart
$(DEL) gamate-fixcart
install zip:

View File

@ -5,6 +5,16 @@ ifdef CROSS_COMPILE
$(info CC: $(CC))
endif
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
DEL = -del /f
else
DEL = $(RM)
endif
CFLAGS += -O3 -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS)
.PHONY: mostlyclean clean
@ -22,6 +32,6 @@ deflater: deflater.c
$(CC) $(CFLAGS) -o deflater deflater.c -lz
mostlyclean clean:
$(RM) deflater
$(DEL) deflater
install zip: